mostlyright.core.schemas.settlement
NWS CLI settlement schema (schema.settlement.cli.v1).
Per docs/design.md §BB.3 (which supersedes the §A table). CLI
settlement is canonically Fahrenheit — Kalshi contract labels are
Fahrenheit and NWS CLI products report Fahrenheit. The schema has no
metric mode; the values ARE the settlement truth.
Temporal mapping (§U + §BB.3):
local_standard_dateis the local climate day per NWS convention (no timezone applied to the date itself).station_tzis the IANA timezone for the station ("America/Chicago"for KORD), looked up from a static table per ICAO code. Required for local-climate-day semantics.event_time_utcis00:00 local time on local_standard_dateconverted to UTC. Used for sort / point-in-time joins only; downstream code that needs the local date MUST uselocal_standard_datedirectly.knowledge_time = product_release_time(parsed from the CLI product header).
Classes
Section titled “Classes”SettlementSchema() | schema.settlement.cli.v1 — NWS CLI daily settlement rows. |
|---|
class mostlyright.core.schemas.settlement.SettlementSchema
Section titled “class mostlyright.core.schemas.settlement.SettlementSchema”Bases: Schema
schema.settlement.cli.v1 — NWS CLI daily settlement rows.
No imperial rename map: CLI settlement IS Fahrenheit, and Fahrenheit is the canonical unit for both Kalshi contract labels and the NWS CLI product itself. Adapters must NOT convert.
imperial_renames: ClassVar[dict[str, str]]
Section titled “imperial_renames: ClassVar[dict[str, str]]”Settlement values are already in canonical Fahrenheit / inches; no
imperial-mode rename map applies. Schema.column_names("imperial")
returns the same names as column_names("metric").