prop/test
Graham McIntire 081cd47bb5
NarrClient.parse_inventory/2 + fetch_inventory/1
parse_inventory walks the wgrib1-format .inv text and returns a
{var, level} -> {byte_offset, length} index, computing each record's
length from the next record's offset (or file_size for the last one).
fetch_inventory does a GET on the .inv URL plus a HEAD on the .grb URL
to learn its size, then delegates to parse_inventory.

Both stubbable via Req.Test (config/test.exs adds narr_req_options
matching the existing era5_req_options / giro_req_options pattern).
Spike fixture at test/fixtures/narr/narr-a_221_20100615_1200_000.inv
backs the parser test — verifies the ("TMP", "2 m above gnd") and
("WVVFLX", "atmos col") records line up with the real bytes.
2026-04-15 18:54:02 -05:00
..
fixtures NARR backfill plan + spike-captured inventory fixture 2026-04-15 17:10:46 -05:00
microwaveprop NarrClient.parse_inventory/2 + fetch_inventory/1 2026-04-15 18:54:02 -05:00
microwaveprop_web PathLive: ionosphere readout panel for VHF paths 2026-04-15 14:48:47 -05:00
mix/tasks fix enrichment 2026-04-02 15:30:41 -05:00
support Persist weather grid for every forecast hour via ProfilesFile 2026-04-14 16:30:40 -05:00
test_helper.exs Exclude slow GRIB2 fixture tests by default (81s -> 16s) 2026-03-31 10:00:13 -05:00