pyiem.wmo module
Very light weight WMO header parser.
-
pyiem.wmo.date_tokens2datetime(tokens)[source]
Convert tokens from MND regex to a valid time, if possible.
- Returns:
3-4 char timezone string
tz (datetime.timezone): of this product
utcvalid (datetimetz): of this product
- Return type:
z (str)
-
class pyiem.wmo.WMOProduct(text, utcnow=None)[source]
Bases: object
Base class for Products with a WMO Header.
- Parameters:
-
-
parse_afos()[source]
Figure out what the AFOS PIL is
-
get_product_id()[source]
Get an identifier of this product used by the IEM
-
parse_wmo()[source]
Parse things related to the WMO header