pyiem.nws.products.taf module#
TAF Parsing
- pyiem.nws.products.taf.make_qualifier(prod, text, ftype_str)[source]#
Parse a tempo group.
- Parameters:
prod (TextProduct)
text (str)
ftype_str (str)
- pyiem.nws.products.taf.make_forecast(prod, text, obvalid)[source]#
Build a TAFForecast data model.
- Parameters:
prod (TextProduct)
text (str)
obvalid (datetime)
- Return type:
- pyiem.nws.products.taf.ambiguous_hour_magic(text, obvalid)[source]#
Make some magic happen for ambiguous dates.
- pyiem.nws.products.taf.ddhhmi2valid(prod, text, obvalid)[source]#
Figure out what valid time this is.
- Parameters:
prod (TextProduct)
text (str)
obvalid (datetime)
- Return type:
- pyiem.nws.products.taf.parse_prod(prod, segtext)[source]#
Generate a data object from this product.
- Parameters:
prod (TextProduct)
segtext (str)
- Return type:
- class pyiem.nws.products.taf.TAFProduct(text, utcnow=None, ugc_provider=None, nwsli_provider=None)[source]#
Bases:
TextProductRepresents a TAF