Reading Data (metpy.io)#

Tools for reading various file formats.

Classes supporting formats are written to take both file names (for local files) or file-like objects; this allows reading files that are already in memory (using io.StringIO) or remote files (using urlopen()).

station_info is an instance of StationLookup to find information about station locations (e.g. latitude, longitude, altitude) from various sources.

Functions

parse_metar_to_dataframe(metar_text, *[, ...])

Parse a single METAR report into a Pandas DataFrame.

parse_metar_file(filename, *[, year, month])

Parse a text file containing multiple METAR reports and/or text products.

is_precip_mode(vcp_num)

Determine if the NEXRAD radar is operating in precipitation mode.

add_station_lat_lon(df[, stn_var])

Lookup station information to add the station latitude and longitude to the DataFrame.

parse_wpc_surface_bulletin(bulletin[, year])

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

Classes

GempakGrid(file, *args, **kwargs)

Subclass of GempakFile specific to GEMPAK gridded data.

GempakSounding(file, *args, **kwargs)

Subclass of GempakFile specific to GEMPAK sounding data.

GempakSurface(file, *args, **kwargs)

Subclass of GempakFile specific to GEMPAK surface data.

GiniFile(filename)

A class that handles reading the GINI format satellite images from the NWS.

Level2File(filename, *[, has_volume_header])

Handle reading the NEXRAD Level 2 data and its various messages.

Level3File(filename)

Handle reading the wide array of NEXRAD Level 3 (NIDS) product files.

StationLookup()

Look up station information from multiple sources.