pyiem.nws.products.gairmet module#

Aviation Weather Center Graphical-AIRMET G-AIRMET.

Break-up the XML G-AIRMET into atomic pieces.

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

Parse an ISO-ish string into UTC timestamp

pyiem.nws.products.gairmet.prettify(elem)[source]#

Return a pretty-printed XML string for the Element.

pyiem.nws.products.gairmet.process_airmet(prod, airmet)[source]#

Process an AIRMET element

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

Bases: TextProduct

Class for parsing the G-AIRMET product

sql(cursor)[source]#

Persist this information to the database

parsing()[source]#

Attempt to parse out what we have found

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

Parse a G-AIRMET product

Parameters:

buf (str) – What we want to parse