pyiem.nws.products.sigmet module#

Parse SIGMETs

class pyiem.nws.products.sigmet.SIGMET[source]#

Bases: object

Data Structure.

pyiem.nws.products.sigmet.figure_expire(ptime, hour, minute)[source]#

Convert something like 0255Z into a full blown time

pyiem.nws.products.sigmet.go2lonlat(lon0, lat0, direction, displacement)[source]#

http://stackoverflow.com/questions/7222382

pyiem.nws.products.sigmet.locs2lonslats(loc_provider, locstr, geotype, _widthstr, diameterstr)[source]#

Convert a locstring into a lon lat arrays

pyiem.nws.products.sigmet.compute_esol(pts, distance)[source]#

Figure out the box points given the two points and the distance

class pyiem.nws.products.sigmet.SIGMETProduct(text, utcnow=None, ugc_provider=None, nwsli_provider=None)[source]#

Bases: TextProduct

Represents a Storm Prediction Center Mesoscale Convective Discussion

sql(txn)[source]#

Do SQL related stuff that is required

compute_time(ddhhmi)[source]#

Convert this string into a proper date time

process_ocean()[source]#

Process oceananic

process_SIGC()[source]#

Process this type of SIGMET

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

Return the Jabber for this sigmet

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

Helper function