How nst-guide/ndfd_historical works
This repository builds historical NDFD weather summaries for selected CONUS geometry. The principal workflow is to turn input LineStrings into intersecting grid cells, import matching forecast data from NOAA bulk extracts, keep the latest forecast per cell and valid time, then aggregate values by cell and half-month alongside grid geometry. Grid projection constants support cell lookup; an optional elevation lookup uses the NWS API. The README describes the intended map-layer outcome, but the sampled summarizer stops after creating a merged in-memory result, so no exported map layer is shown.
Main entry points: get_grid.py Grid Intersections · import.py Download and Import · summarize.py Half-Month Summaries · coalesce.py Latest Forecast Selection
Components 12
Geometry Selection
- Grid Intersections
code/get_grid.py - Selected Grid GeoJSON
Forecast Ingestion
- Download and Import
code/import.py - Raw Cell Forecasts
Data Processing
- Latest Forecast Selection
code/coalesce.py - Coalesced Forecasts
- Half-Month Summaries
code/summarize.py - Merged Summary Result
Grid Support
- Projection Constants
code/constants.py
Other components
- Geometry / Operator
- NOAA Bulk Extracts
- NWS Elevation API
Connections 13
- Geometry / Operator → Grid Intersections: provides geometry
- Grid Intersections → Projection Constants: uses projection
- Grid Intersections → Selected Grid GeoJSON: outputs cells
- Grid Intersections → NWS Elevation API: optionally requests elevation
- Geometry / Operator → Download and Import: provides extract IDs
- Download and Import → NOAA Bulk Extracts: lists and downloads
- Selected Grid GeoJSON → Download and Import: selects cells
- Download and Import → Raw Cell Forecasts: writes forecasts
- Raw Cell Forecasts → Latest Forecast Selection: reads forecasts
- Latest Forecast Selection → Coalesced Forecasts: writes latest values
- Coalesced Forecasts → Half-Month Summaries: reads forecasts
- Selected Grid GeoJSON → Half-Month Summaries: provides geometry
- Half-Month Summaries → Merged Summary Result: aggregates and merges