parse_wpc_surface_bulletin#

metpy.io.parse_wpc_surface_bulletin(bulletin, year=None)[source]#

Parse a coded surface bulletin from NWS WPC into a Pandas DataFrame.

Parameters:

bulletin (str or file-like object) – If str, the name of the file to be opened. If bulletin is a file-like object, this will be read from directly.

Returns:

  • dataframe (pandas.DataFrame) – A DataFrame where each row represents a pressure center or front. The DataFrame has four columns: ‘valid’, ‘feature’, ‘strength’, and ‘geometry’.

  • year (int) – Year to assume when parsing the timestamp from the bulletin. Defaults to None, which results in the parser trying to find a year in the product header; if this search fails, the current year is assumed.

Examples using metpy.io.parse_wpc_surface_bulletin#

Plotting Fronts

Plotting Fronts