prop/lib/microwaveprop
Graham McIntire 8637253fda Batch ERA5 fetches by month and 2° tile
Per-point ERA5 fetches were tragically slow because every point-hour
triggered its own asynchronous CDS job (submit → poll → assemble →
download). For backfill this meant thousands of independent jobs
queued against Copernicus. The new path groups requests by calendar
month and a 2° × 2° lat/lon tile so one CDS cycle populates ~60k
profiles at once, and Oban uniqueness on (year, month, tile_lat,
tile_lon) collapses every duplicate enqueue.

- Era5BatchClient builds the monthly CDS requests, extracts every
  (lat, lon, hour) from the GRIB2 blob with wgrib2, derives
  refractivity params, and bulk-inserts in 2k-row chunks with
  on_conflict: :nothing. fetch_month_into_db/1 short-circuits when
  the month-tile already has any cached profile.
- Era5MonthBatchWorker runs the batch on the :era5 queue with a
  generous backoff (10m → 1d) and the uniqueness key above.
- Era5FetchWorker is now a thin router: cache hit → :ok, cache miss
  → enqueue the month-batch for the point's tile-month and return.
  No more per-point CDS calls.
- Wgrib2 grows extract_grid_messages/3 which preserves per-message
  datetimes by parsing `d=YYYYMMDDHH[MMSS]` from the inventory, so a
  single GRIB2 file carrying a whole month decodes correctly.
- The era5_backfill mix task enqueues month-tile batches directly.
2026-04-09 13:01:49 -05:00
..
accounts Add /beacons CRUD and /users admin page 2026-04-08 12:01:45 -05:00
beacon_monitors Add beacon monitor registration and fix prod SMTP 2026-04-08 11:30:28 -05:00
beacons Compact beacon detail page, toggleable coverage, About page formatting 2026-04-09 09:12:32 -05:00
commercial Fix SNMP polling: remove invalid timeout option and normalize OID format 2026-03-30 13:44:49 -05:00
propagation Add 902-5760 MHz bands, centralize band options 2026-04-07 16:39:25 -05:00
radio CSV upload preview with duplicate detection before commit 2026-04-09 12:30:10 -05:00
terrain Smooth viewshed boundary to remove SRTM elevation spikes 2026-04-07 07:42:32 -05:00
weather Batch ERA5 fetches by month and 2° tile 2026-04-09 13:01:49 -05:00
workers Batch ERA5 fetches by month and 2° tile 2026-04-09 13:01:49 -05:00
accounts.ex Add /beacons CRUD and /users admin page 2026-04-08 12:01:45 -05:00
application.ex Add Erlang clustering via libcluster and expose LiveDashboard 2026-04-06 09:46:48 -05:00
beacon_monitors.ex Add beacon monitor registration and fix prod SMTP 2026-04-08 11:30:28 -05:00
beacons.ex Beacon improvements: anon submit, notes, /map nav, admin backfill 2026-04-08 16:23:59 -05:00
commercial.ex Add commercial link monitoring via SNMP polling 2026-03-30 13:02:59 -05:00
geo.ex Add /rover planner for microwave contest rovers 2026-04-07 14:17:48 -05:00
mailer.ex initial 2026-03-28 11:28:47 -05:00
markdown.ex fix enrichment 2026-04-02 15:30:41 -05:00
propagation.ex Decouple propagation_scores pruning from the compute worker 2026-04-09 12:30:10 -05:00
radio.ex Add deterministic tiebreaker to contacts sort order 2026-04-05 09:27:34 -05:00
release.ex docker 2026-03-28 11:41:31 -05:00
repo.ex initial 2026-03-28 11:28:47 -05:00
repo_listener.ex Replace polling with Postgres LISTEN/NOTIFY for live updates 2026-04-02 16:26:22 -05:00
terrain.ex Reduce dead tuples by using conditional upserts and skip-on-conflict 2026-04-04 17:32:57 -05:00
weather.ex Add ERA5 reanalysis and RTMA data sources 2026-04-07 12:04:16 -05:00