pyiem.nws.products package#
Submodules#
- pyiem.nws.products.cf6 module
- pyiem.nws.products.cli module
- pyiem.nws.products.cwa module
- pyiem.nws.products.dsm module
- pyiem.nws.products.ero module
- pyiem.nws.products.fd module
- pyiem.nws.products.ffg module
- pyiem.nws.products.gairmet module
- pyiem.nws.products.hml module
- pyiem.nws.products.hwo module
- pyiem.nws.products.lsr module
- pyiem.nws.products.mcd module
MCDProductMCDProduct.parse_most_prob_tags()MCDProduct.parse_correction()MCDProduct.find_valid_times()MCDProduct.find_watch_probability()MCDProduct.get_prob_extra()MCDProduct.tweet()MCDProduct.get_url()MCDProduct.parse_areas_affected()MCDProduct.get_jabbers()MCDProduct.parse_concerning()MCDProduct.parse_discussion_num()MCDProduct.parse_geometry()MCDProduct.database_save()
parser()
- pyiem.nws.products.metar_util module
- pyiem.nws.products.metarcollect module
- pyiem.nws.products.mos module
- pyiem.nws.products.nhc module
- pyiem.nws.products.nldn module
- pyiem.nws.products.pirep module
- pyiem.nws.products.saw module
SAWProductSAWProduct.TORNADOSAWProduct.SEVERE_THUNDERSTORMSAWProduct.ISSUESSAWProduct.CANCELSSAWProduct.find_replaces()SAWProduct.find_action()SAWProduct.compute_wfos()SAWProduct.sql()SAWProduct.find_time()SAWProduct.find_ww_num()SAWProduct.is_test()SAWProduct.find_ww_type()SAWProduct.find_polygon()SAWProduct.get_jabbers()
parser()
- pyiem.nws.products.scp module
- pyiem.nws.products.sel module
- pyiem.nws.products.shef module
- Formats
- Implementation Notes
- Known Limitations
parse_d_wrapper()make_date()parse_dc()parse_dy()datetime24()parse_dh()parse_station_valid()process_di()parse_dm()parse_dd()parse_dt()process_modifiers()process_message_e()strip_comments()clean_b_headerline()process_message_b()slash_tokenize()process_message_a()process_messages()parse_A()parse_B()parse_E()compute_num_value()SHEFProductparser()
- pyiem.nws.products.sigmet module
- pyiem.nws.products.spacewx module
- pyiem.nws.products.spcpts module
- pyiem.nws.products.sps module
- pyiem.nws.products.taf module
- pyiem.nws.products.vtec module
- pyiem.nws.products.wwp module
- pyiem.nws.products.xteus module
Module contents#
A generalized parser frontend.
- pyiem.nws.products.parser(text, utcnow=None, ugc_provider=None, nwsli_provider=None)[source]#
Omnibus parser of NWS Text Data
This is intended to be a catch-all parser of text data. As it currently stands, it does not correctly hand products off to the correct sub-processor, but some day it will!
- Parameters:
text (str) – The actual product text, this can have the <cntr>-a character to start the string.
utcnow (datetime, optional) – What is the current time, this is useful for when ingesting old data. Many times, the product does not contain enough information to assign a current valid timestamp to it. So we need to know the current timestamp to do the relative computation.
ugc_provider (UGCProvider, optional) – Provides UGC information for product parsing.
nwsli_provider (dict, optional) – Provides NWS Location Identifiers to allow lookup of geographic information for station identifiers.
- Returns:
A TextProduct instance
- Return type: