Commit Graph
5 Commits
Author SHA1 Message Date
Bilawal Sidhu 9ae79cf34a style(wind): adopt automatically discovered runtime formatting 2026-09-15 10:54:09 -05:00
Bilawal Sidhu d14765c704 fix(wind): apply current ECMWF source attribution and forecast steps 2026-09-15 02:32:34 -05:00
Bilawal Sidhu 26354d5ae1 merge: integrate ECMWF IFS PR #464 with bounded model switching 2026-09-15 02:25:35 -05:00
Gustavo Beneduzi 48b3c1c332 fix(wind): restore model rendering and show valid time 2026-09-14 17:17:08 -03:00
Gustavo Beneduzi bb18e39b7d feat(wind): add ECMWF IFS as a second wind model
Add ECMWF IFS 10 m wind alongside NOAA GFS, selectable at runtime.

The /api/wind proxy becomes a model dispatcher: `?model=gfs|ifs` (default gfs,
unknown → 400), cached per model+cycle+grid. IFS reads the keyless ECMWF Open
Data JSON Lines `.index` (note: `<stem>.index`, not `<grib2>.index`), byte-range
fetches only the `10u`/`10v` messages, decodes them with the same ecCodes WASM
path, and resamples with the existing grid code (ECMWF grids start at lo1=180;
the resampler already wraps columns).

The client layer gains a `model` parameter (setParams/getParams) with a
generation guard so a model switch aborts and refetches exactly once. Registered
as an enabled+options layer with a `model` enum.

Validated end-to-end against the real 2026-09-14 06z IFS cycle on Node 25
(180x91 grid at 2°, 131,040-byte payload, plausible mean |u|/|v|), and GFS
still passes the same check.

Attribution: contains modified Copernicus/ECMWF IFS forecast data, licensed
under CC BY 4.0. Verified: npm test (3412 pass, 0 fail), check:boundaries.
2026-09-14 13:04:35 -03:00