pyiem.nws.products.hml module#

NWS Hydrological Markup Language

Attempt to break up the HML product into atomic data

pyiem.nws.products.hml.no999(val)[source]#

No negative -999 or -9999 please.

pyiem.nws.products.hml.parseUTC(s)[source]#

Parse an ISO-ish string into UTC timestamp

pyiem.nws.products.hml.parse_xml(token)[source]#

Attempt to parse the XML into something useful

class pyiem.nws.products.hml.HMLData[source]#

Bases: object

Our data object.

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

Bases: TextProduct

Class for parsing and representing Space Wx Products

do_sql_observed(cursor, _hml)[source]#

Process the observed portion of the dataset

do_sql_forecast(cursor, _hml)[source]#

Process the forecast portion of the dataset

sql(cursor)[source]#

Persist this information to the database

parsing()[source]#

Attempt to parse out what we have found

__str__()[source]#

string representation

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

Parse a HML NOAAPort product

This may have multiple xml documents inside.

Parameters:

buf (str) – What we want to parse