The Rust hrrr_points worker now persists surface_refractivity / min_refractivity_gradient / ducting_detected at upsert time (previous commit), but the ~80k rows written before that fix have the scalar columns NULL even though the pressure-level `profile` JSONB is populated. Re-fetching them would re-pull tens of GB of HRRR grids we already parsed. Weather.backfill_hrrr_scalars/1 streams rows with `surface_refractivity IS NULL`, runs the existing SoundingParams.derive/1 against the stored profile, and writes the scalars back — no network, no GRIB decode. Batched (500 rows per tick, 1000 tick cap) to keep transactions short on the Turing Pi 2 PG node. Meant to be run once via `bin/microwaveprop rpc` after deploy. Idempotent; the WHERE clause excludes already-backfilled rows. |
||
|---|---|---|
| .. | ||
| microwaveprop | ||
| microwaveprop_web | ||
| mix/tasks | ||
| microwaveprop.ex | ||
| microwaveprop_web.ex | ||