pyiem.nws.products.lsr module
NWS Local Storm Report (LSR) Parsing.
-
exception pyiem.nws.products.lsr.LSRProductException[source]
Bases: TextProductException
Something we can raise when bad things happen!
-
class pyiem.nws.products.lsr.LSRProduct(text, utcnow=None, ugc_provider=None, nwsli_provider=None)[source]
Bases: TextProduct
Represents a text product of the LSR variety
-
get_temporal_domain()[source]
Return the min and max timestamps of lsrs
- Return type:
tuple[datetime | None, datetime | None]
-
is_summary()[source]
Returns is this LSR is a summary or not
-
get_url(baseuri)[source]
Get the URL of this product
- Parameters:
baseuri (str)
- Return type:
str
-
get_jabbers(uri, _uri2=None)[source]
return a text and html variant for Jabber stuff
-
pyiem.nws.products.lsr.parse_lsr(prod, text)[source]
Emit a LSR object based on this text!
0914 PM HAIL SHAW 33.60N 90.77W
04/29/2005 1.00 INCH BOLIVAR MS EMERGENCY MNGR
-
pyiem.nws.products.lsr.parser(text, utcnow=None, ugc_provider=None, nwsli_provider=None)[source]
Helper function that actually converts the raw text and emits an
LSRProduct instance or returns an exception