bsrn.archive.specs#

bsrn.archive.specs

Logical-record field definitions for BSRN station-to-archive files (LR_SPECS) and static lookup tables: STATION_METADATA, TOPOGRAPHIES, SURFACES, QUANTITIES, PYRGEOMETER_BODY, PYRGEOMETER_DOME.

Format Codes (Fortran-style): - ‘I#’: Integer padded to # characters (e.g., I4) - ‘A#’: String/Alphanumeric padded to # characters (e.g., A38) - ‘F#.#’: Float padded to total width with specific decimals (e.g., F5.1) - ‘L’: Logical boolean (usually T/F or 1/0) - ‘ND’: Not defined / No specific width enforced by the original spec

Module Attributes

LR_SPECS

Nested mapping keyed by LR code and field name to Fortran-style format metadata (format, missing value, validator name, etc.); consumed by Pydantic LR models.

STATION_METADATA

Three-letter station code to directory metadata (name, coordinates, contacts, etc.).

QUANTITIES

Quantity label string to WRMC numeric id for LR0008 radiationQuantityMeasured.

SURFACES

Human-readable surface description to LR0004 surfaceType integer code.

TOPOGRAPHIES

Topography description to LR0004 topographyType integer code.

PYRGEOMETER_BODY

Pyrgeometer body compensation option to LR0008 pyrgeometerBody code.

PYRGEOMETER_DOME

Dome and ventilation option to LR0008 pyrgeometerDome code.