pyiem.nws.products.taf module#

TAF Parsing

pyiem.nws.products.taf.add_forecast_info(fx, text)[source]#

Common things.

pyiem.nws.products.taf.make_qualifier(prod, text, ftype_str)[source]#

Parse a tempo group.

Parameters:
pyiem.nws.products.taf.make_forecast(prod, text, obvalid)[source]#

Build a TAFForecast data model.

Parameters:
Return type:

TAFForecast

pyiem.nws.products.taf.ambiguous_hour_magic(text, obvalid)[source]#

Make some magic happen for ambiguous dates.

Parameters:
Return type:

datetime

pyiem.nws.products.taf.ddhhmi2valid(prod, text, obvalid)[source]#

Figure out what valid time this is.

Parameters:
Return type:

datetime

pyiem.nws.products.taf.parse_prod(prod, segtext)[source]#

Generate a data object from this product.

Parameters:
Return type:

TAFReport

class pyiem.nws.products.taf.TAFProduct(text, utcnow=None, ugc_provider=None, nwsli_provider=None)[source]#

Bases: TextProduct

Represents a TAF

get_channels_for_report(report)[source]#

Return a list of channels

Parameters:

report (TAFReport)

Return type:

list[str]

sql(txn)[source]#

Persist to the database.

get_jabbers(uri, _uri2=None)[source]#

Get the jabber variant of this message

pyiem.nws.products.taf.parser(text, utcnow=None, ugc_provider=None, nwsli_provider=None)[source]#

Helper function