pyiem.nws.products.sps module#

Special Weather Statement

pyiem.nws.products.sps.dedup_headline(headline, ugcs, counties, expire)[source]#

Try to not be redundant

Parameters:
  • headline (str) – our current headline

  • ugcs (list(ugc)) – list of ugcs this SPS is for

  • counties (str) – our current parsed string of counties

  • expire (str) – our current parsed expiration string

Returns:

our new counties, which has been deduped (str): our new expire, which has been deduped

Return type:

(str)

class pyiem.nws.products.sps.SPSProduct(text, utcnow=None, ugc_provider=None, nwsli_provider=None, parse_segments=True)[source]#

Bases: TextProduct

A Special Weather Statement

Parameters:

ugc_provider (UGCProvider | dict | None)

sql(txn)[source]#

Do database save in the case of a polygon

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

return the standard [[text, html, xtra], ] for jabber

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

The SPS Parser