mostlyright.core.schemas.forecast_nwp
NWP forecast schema (schema.forecast.nwp.v1).
Distinct from mostlyright.core.schemas.forecast (which describes
IEM MOS forecasts on a per-station-cycle basis). NWP forecasts come from
gridded numerical models (HRRR / GFS / NBM in v0.1.0; ECMWF Tier-2
predeclared in the enum for v0.2) and carry model-native units (Kelvin
for temperature, m/s for wind, mm for precip, Pa for pressure).
mirror records which NOAA Big Data Program mirror served the bytes
that produced this row — quants auditing “why does this forecast
disagree?” can trace bytes back to the mirror they came from.
Module Attributes
Section titled “Module Attributes”| Attribute | Description |
|---|---|
NWP_MODEL_VALUES | Models that ship in v0.1.0 plus the catalog expansion. |
NWP_MIRROR_VALUES | Mirrors that may appear in the mirror column. |
NWP_QC_STATUS_VALUES | QC status values populated by the inline physics-bounds check in mostlyright.weather.forecast_nwp. |
Classes
Section titled “Classes”| Class | Description |
|---|---|
NwpForecastSchema() | schema.forecast.nwp.v1 — gridded NWP forecast rows. |
mostlyright.core.schemas.forecast_nwp.NWP_MIRROR_VALUES : tuple[str, …]
Section titled “mostlyright.core.schemas.forecast_nwp.NWP_MIRROR_VALUES : tuple[str, …]”Mirrors that may appear in the mirror column. The four ECMWF mirrors are
reserved so ECMWF rows can be added without bumping schema_id; "msc"
covers the Canadian MSC Datamart.
mostlyright.core.schemas.forecast_nwp.NWP_MODEL_VALUES : tuple[str, …]
Section titled “mostlyright.core.schemas.forecast_nwp.NWP_MODEL_VALUES : tuple[str, …]”Models that ship in v0.1.0 plus the catalog expansion. Reserving
the enum day-one (and adding entries additively) keeps
schema_id stable while the catalog grows.
mostlyright.core.schemas.forecast_nwp.NWP_QC_STATUS_VALUES : tuple[str, …]
Section titled “mostlyright.core.schemas.forecast_nwp.NWP_QC_STATUS_VALUES : tuple[str, …]”QC status values populated by the inline physics-bounds check in
mostlyright.weather.forecast_nwp. "clean" passed all rules;
"flagged" tripped one or more; "suspect" tripped a hard
physics violation (e.g. negative absolute temperature) that warrants
dropping for most use cases.
class mostlyright.core.schemas.forecast_nwp.NwpForecastSchema
Section titled “class mostlyright.core.schemas.forecast_nwp.NwpForecastSchema”Bases: Schema
schema.forecast.nwp.v1 — gridded NWP forecast rows.
One row per (station, model, cycle, fxx, variable_column) — the
variable column itself is encoded as separate float columns rather
than long-form rows so quants can do model arithmetic without a
pivot.
The mirror column lets a downstream auditor link a row back to
the bytes that produced it (NOAA BDP mirror chain).