mostlyright.core.schemas.observation
Canonical METAR/SPECI observation schema (schema.observation.v1).
Defines 20 metric columns; the imperial-mode rename map projects them onto the 9-column METAR-parser contract.
Adapters (IEM, AWC) normalise their raw responses to these columns before
emitting rows. source, knowledge_time and retrieved_at are overlay
columns added on top of the declared set (not part of COLUMNS); they are
stamped on every fetch and validated independently.
Classes
Section titled “Classes”| Class | Description |
|---|---|
ObservationSchema() | schema.observation.v1 — canonical METAR/SPECI rows. |
class mostlyright.core.schemas.observation.ObservationSchema
Section titled “class mostlyright.core.schemas.observation.ObservationSchema”Bases: Schema
schema.observation.v1 — canonical METAR/SPECI rows.
In imperial mode the rename map projects the metric columns onto the
9-column METAR-parser set: station, utc_datetime, temp_f, dewpoint_f, sea_level_pressure_hpa, wind_speed_kt, wind_direction_degrees, wind_gust_kt, visibility_miles. sea_level_pressure_hpa is in
canonical aviation units and unchanged across modes;
wind_direction_degrees is dimensionless degrees.
imperial_renames: ClassVar[dict[str, str]]
Section titled “imperial_renames: ClassVar[dict[str, str]]”Metric → imperial column-name map.
station, observation_type, wind_direction_degrees, sea_level_pressure_hpa,
sky_cover_N and raw_metar are unchanged across modes.