Commit Graph
4 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 430dcd4c55 fix(wind): decode in bounded virtual storage and test real canvas retention 2026-09-15 02:30:29 -05:00
Bilawal Sidhu dcb3339070 fix(wind): bound GFS acquisition and preserve canvas trails and lifecycle 2026-09-15 02:21:09 -05:00
Gustavo Beneduzi deb34ebe35 feat(wind): add keyless NOAA GFS wind layer with animated particles
Add a Wind layer animating the global 10 m wind field from NOAA GFS.

The /api/wind proxy selects the latest available 0.25° cycle, reads its .idx
inventory, byte-range fetches only the UGRD/VGRD 10 m GRIB2 messages (~1 MB
each instead of the whole ~500 MB file), decodes them with ecCodes (WASM),
resamples to a compact grid (1° default), and serves a manifest plus a Float32
U/V payload cached per cycle for an hour (single-flight, last-good on failure).

The client renders nullschool-style particles in a canvas overlay: bilinear
field sampling with longitude wrap, per-frame advection, Cesium camera
projection, and globe-occlusion culling via EllipsoidalOccluder.

Validated end-to-end against the real 2026-09-14 06z cycle on Node 25
(180x91 grid at 2°, 131,040-byte payload, plausible mean |u|/|v|). The WASM
decoder requires Node >=24, which the repo already requires.

Registered as `wind` (token k) with attribution and docs. Verified: npm test
(3412 pass, 0 fail), npm run check:boundaries.
2026-09-14 12:59:18 -03:00