pyiem.nws.products.ero module
Eh, I am able to parse the SPC PTS now, so why not add more pain.
Weather Prediction Center Excessive Rainfall Outlook.
-
pyiem.nws.products.ero.init_days(prod)[source]
Figure out which days this product should have based on the AFOS.
-
pyiem.nws.products.ero.compute_loc(lon, lat, dist, bearing)[source]
Estimate a lat/lon
-
pyiem.nws.products.ero.sid_rectify(sid)[source]
Ensure it matches our nomenclature.
-
pyiem.nws.products.ero.meat2segment(meat)[source]
Convert into a list of points.
-
pyiem.nws.products.ero.jabber_messages(valid, outlook_collections)[source]
Generate a list of Jabber messages to send.
- Parameters:
-
- Returns:
a list of Jabber messages [(plain, html, xtradict), …]
- Return type:
list
-
pyiem.nws.products.ero.compute_wfos(outlook_collections)[source]
Compute the WFOs affected for each outlook in collection.
-
class pyiem.nws.products.ero.ERO(text, utcnow=None, ugc_provider=None, nwsli_provider=None)[source]
Bases: TextProduct
A class representing the polygons and metadata in WPC ERO Product
-
get_outlookcollection(day)[source]
Returns the OutlookCollection for a given day
-
get_outlook(category, threshold, day)[source]
Get an outlook by category and threshold
-
draw_outlooks()[source]
For debugging, draw the outlooks on a simple map for inspection!
-
find_issue_expire()[source]
Determine the period this product is valid for
-
find_outlooks()[source]
Find the outlook sections within the text product!
-
sql(txn)[source]
Do database work
- Parameters:
txn (psycopg.cursor) – database cursor
-
get_jabbers(uri, _uri2=None)[source]
Wordsmith the Jabber/Twitter Messaging
-
pyiem.nws.products.ero.parser(text, utcnow=None, ugc_provider=None, nwsli_provider=None)[source]
Parse this text!