libSDRForge
Loading...
Searching...
No Matches
sdrforge.weather.forecast_area Namespace Reference

Conservatively attribute NOAA forecasts to spoken county headers. More...

Classes

class  ForecastAreaTracker
 Track explicit forecast areas and suspected bulletin cycles. More...

Functions

str _normalize_county (str name)

Variables

 _COUNTY = re.compile(r"\b([a-z]+(?:\s+[a-z]+)?)\s+county\b", re.IGNORECASE)
 _BULLETIN
 _HEADER = re.compile(r"\b(?:also\s+)?(?:the\s+)?forecast\s+for\b", re.IGNORECASE)

Detailed Description

Conservatively attribute NOAA forecasts to spoken county headers.

Only explicit county names are attributed. A header found at the end of a forecast applies to the following forecast, never retroactively.

Function Documentation

◆ _normalize_county()

str sdrforge.weather.forecast_area._normalize_county ( str name)
protected
Remove a known NOAA transcription artifact, not arbitrary place words.

Variable Documentation

◆ _BULLETIN

sdrforge.weather.forecast_area._BULLETIN
protected
Initial value:
1= re.compile(
2 r"\b(?:here is|the following is)\s+(?:the\s+)?(?:extended\s+)?forecast\s+for\b",
3 re.IGNORECASE,
4)

◆ _COUNTY

sdrforge.weather.forecast_area._COUNTY = re.compile(r"\b([a-z]+(?:\s+[a-z]+)?)\s+county\b", re.IGNORECASE)
protected

◆ _HEADER

sdrforge.weather.forecast_area._HEADER = re.compile(r"\b(?:also\s+)?(?:the\s+)?forecast\s+for\b", re.IGNORECASE)
protected