You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
converts longitude [0, 360) → [-180, 180); flips latitude to descending
re-encodes time; stamps institution and Conventions = "CF-1.7"
Migration tooling for archived v1 forecasts
python -m EarthSHAB.forecast_processing.migrate_v1 <file_or_dir> converts
v1 GFS, v1 ERA5 "processed", and pre-Sep-2024 ERA5 files to canonical in
place (idempotent; backs up originals as <name>.v1.nc)
python -m EarthSHAB.forecast_processing.verify_migration <dir> confirms a
directory is fully v2
The reader raises ForecastFormatError with the exact migration command
when it encounters a v1 file — no silent on-load conversion
Documented in docs/source/migration-v2.md
Removals / cleanup
Deleted the obsolete convert_era52gfs.py / convert_gfs2era5.py
converters and the *-processed.nc intermediates
Test suite collapsed to a single reader: dropped the reader_type
parametrization and reader_adapter.py; dummy-forecast fixtures emit
only canonical schema
Bug fixes (latent v1 bugs surfaced while deleting the old readers)
ERA5 reader unpacked 3 values from a 2D np.nonzero (fired on partial
masks at the level-0 sample slice)
GFS time decode used hardcoded "days since 0001-01-01" units, producing
cftime objects and a 2-day calendar offset vs stdlib datetime
Historical GFS downloads from the AWS archive (saveNETCDF_archive.py)
Pulls past cycles from noaa-gfs-bdp-pds (pgrb2.0p25, ~2021-03 onward) via
each file's .idx sidecar + HTTP byte-range requests; writes the same v2
canonical schema as the live downloader (drop-in replacement)
saveNETCDF.py auto-switches to it (yellow warning + prompt) when the
requested cycle predates NOAA's ~9-day live window; non-interactive
sessions proceed automatically
New netcdf_gfs['step_hours'] sets download temporal resolution for both
downloaders (3-hourly default, 1 = hourly; GFS hourly only out to f120)
run_batch.py gains --launches <file> to run an alternate launches JSON
Documentation
New canonical-schema and migration guides; unified Forecast API page
(replacing the separate GFS/ERA5 pages); refreshed GFS/ERA5 download guides
README v2.0 breaking-change banner linking to the migration guide