download_era5_uncertainty
ERA5 Uncertainty Download (CLIMATE-22 gap-fill)
Downloads whole-year ERA5 reanalysis and ensemble_spread 2m temperature
files from the Copernicus CDS, matching the layout Katrin Burkart produced by
hand in /ihme/erf/ERA5/katrin_download_20240208/ for 2022/2023:
era5_{product_type}_{variable}_{year}.nc (one file per whole year)
This fills the 2024/2025 gap that GBD temperature PAF work depends on. It is a
standalone gap-fill: the ensemble_spread product is not (yet) consumed by
the rest of this repo's pipeline, which only uses reanalysis mean temperature.
Notes / gotchas baked in below:
* The ensemble products only exist on reanalysis-era5-single-levels (0.25°
HRES / ~0.5° EDA), never on reanalysis-era5-land.
* Both products are pulled 3-hourly to match the canonical GBD download and
Katrin's 2022/2023 files. ensemble_spread (the EDA) is only 3-hourly;
reanalysis (HRES) is subsampled from hourly to the same 3-hourly axis.
* Credentials come from the caller's ~/.cdsapirc (cdsapi.Client() with
no args), so no dependency on the shared per-user copernicus.yaml keyring
(which does not carry every user).
download_era5_uncertainty(era5_variable: str, output_dir: str, queue: str, dry_run: bool) -> None
Download 2024/2025 ERA5 reanalysis + ensemble_spread (CLIMATE-22 gap-fill).
Source code in src/climate_data/special/download_era5_uncertainty.py
download_era5_uncertainty_task(year: str, product_type: str, era5_variable: str, output_dir: str) -> None
Download one whole-year ERA5 file (single year, single product type).