pyiem.nws.vtec module#

Support NWS VTEC encoding

pyiem.nws.vtec.contime(text)[source]#

Convert text into a UTC datetime.

pyiem.nws.vtec.get_ps_string(phenomena, significance)[source]#

Return the combination of Phenomena + Significance as string

pyiem.nws.vtec.get_action_string(action)[source]#

Return the action string

class pyiem.nws.vtec.VTEC(tokens)[source]#

Bases: object

A single VTEC encoding instance

s3()[source]#

Return a commonly used string representation.

s2()[source]#

Return a commonly used string representation.

get_end_string(prod)[source]#

Return an appropriate end string for this VTEC

get_begin_string(prod)[source]#

Return an appropriate beginning string for this VTEC

url(year)[source]#

Generate a VTEC url string needed

get_id(year)[source]#

Return a custom string identifier for this VTEC product

This is used by the Live client

__str__()[source]#

Return string representation

get_ps_string()[source]#

Return the combination of Phenomena + Significance as string

get_action_string()[source]#

Return the action string

product_string()[source]#

Return the combination of action and phenomena+significance

pyiem.nws.vtec.parse(text)[source]#

I look for and return vtec objects as I find them

Parameters:

text (str)

Return type:

list[VTEC]