pyiem.nws.products.mcd module#

Supports parsing of Storm Prediction Center’s MCD and parsing of Weather Prediction Center’s MPD

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

Bases: TextProduct

Represents a Storm Prediction Center Mesoscale Convective Discussion

parse_most_prob_tags()[source]#

Glean what we can for these tags.

Return type:

MostProbableTags

parse_correction()[source]#

Look for the correction flag.

Return type:

bool

find_valid_times()[source]#

Figure out when this product is valid for

find_watch_probability()[source]#

Find the probability of watch issuance for SPC MCD

get_prob_extra()[source]#

Return some text.

tweet()[source]#

Return twitter message

get_url()[source]#

Return the URL for SPC’s website

parse_areas_affected()[source]#

Return the areas affected

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

Return plain text and html variants for a Jabber msg

Parameters:
  • uri (str) – URL number one needed for constructing the URI

  • _uri2 (str) – not used, but needed for the over-ride

Returns:

List of lists, plain text, html text, xtra dict

Return type:

(list)

parse_concerning()[source]#

Figure out the concerning text, if it exists.

parse_discussion_num()[source]#

Figure out what discussion number this is

parse_geometry()[source]#

Find the polygon that’s in this MCD product

database_save(txn)[source]#

Save this product to the database

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

Helper function