Expand description
Reading one NEXRAD Level 3 digital radial product (N0B, N0G) into a sweep on the fixed 0.5° beam grid.
A port of the Python reference xuebuild/nexrad/level3.py::read_sweep,
which the polar store is built from: the browser reads a live site’s
newest sweeps straight from the public Level 3 bucket with this, and must
accept, refuse and bin exactly what the store’s builder does, so a live
sweep and a stored one of the same file are the same codes.
The layout is the WSR-88D RPG-to-class-1-user ICD (2620001): a WMO
abbreviated heading, the 18-byte message header, the 102-byte product
description block, and the product symbology block — bzip2-compressed when
the description block says so — whose one layer is a packet 16 (digital
radial data array). Codes are copied, never requantized: the threshold
words must state the codebook docs/nexrad.md §2 fixes, or the file is
refused. Every offset is bounds-checked, and the only allocations are the
decompressed body, capped before it grows, and the code grid, whose size
the product code fixes rather than the file.
Structs§
- Level3
Sweep - One Level 3 sweep, its header facts, and its codes on the beam grid.
Constants§
- LEVE
L3_ BEAMS - Beams on the fixed grid; beam
jcovers[0.5 j, 0.5 (j + 1))degrees from north.
Functions§
- read_
level3 - Parse one Level 3 N0B / N0G file’s bytes.