START_MONTH=1995-01
END_MONTH=2026-08

help:     ## Show this help.
	@egrep -h '(\s##\s|^##\s)' $(MAKEFILE_LIST) | egrep -v '^--' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m  %-35s\033[0m %s\n", $$1, $$2}'

transpose: ## Download and transpose
	uv run python -m hostrada_transpose.build_archive \
		--start ${START_MONTH} --end ${END_MONTH} \
		--variables tas,rsds \
		--raw-cache-dir ./raw_cache --archive-path ./hostrada_coarse.zarr

# Example with screen:
# screen -S "Hostrada transpose" -L -Logfile "hostrada_transpose.log" make transpose

resume: ## Resume already started transpose
	uv run python -m hostrada_transpose.build_archive \
		--start ${START_MONTH} --end ${END_MONTH} \
		--variables tas,rsds \
		--raw-cache-dir ./raw_cache --archive-path ./hostrada_coarse.zarr \
		--resume

# TODO: Show available data
# TODO: Show data for given location / date range

