Skip to content

ERA5 initial conditions for CliMA simulations - #1

Open
nefrathenrici wants to merge 1 commit into
mainfrom
ne/era5_ics
Open

ERA5 initial conditions for CliMA simulations#1
nefrathenrici wants to merge 1 commit into
mainfrom
ne/era5_ics

Conversation

@nefrathenrici

@nefrathenrici nefrathenrici commented Jul 31, 2026

Copy link
Copy Markdown
Member

New package: InitialConditions.jl

  • Adds a package that downloads, processes, caches, and validates the ERA5 initial conditions that CliMA simulations start from.
  • One entry point does everything: ERA5.fetch_initial_conditions(date) returns the directory holding the six output files for that date. Outputs one file each for the atmosphere state, SST, sea ice, integrated land, bucket land, and albedo, read by ClimaAtmos, ClimaLand, and the prescribed ocean and sea ice models.
  • Processing follows the WeatherQuest pipeline that made the wxquest_initial_conditions artifact, with one change: the atmosphere state uses the 37 ERA5 pressure levels instead of the 137 model levels.
  • Processing functions are usable on their own. They read by variable name, not file layout, so a caller who already has ERA5 downloads can skip the network.
  • Downloaded files go to a Scratch.jl directory and stay there across runs. INITIAL_CONDITIONS_CACHE_DIR canm be used to specify a shared cluster cache.
  • Default test suite replaces CDSAPI.retrieve with a fake that writes small fixtures. No network, runs in seconds. A separate network test exercises the real CDS path, behind ERA5_NETWORK_TESTS=true.

@nefrathenrici
nefrathenrici force-pushed the ne/era5_ics branch 2 times, most recently from db09667 to 675869c Compare July 31, 2026 22:12
@nefrathenrici
nefrathenrici marked this pull request as ready for review July 31, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant