pyart.aux_io.read_png#
- pyart.aux_io.read_png(filename, additional_metadata=None, xres=1.25, yres=1.25, nz=1, date_format='%Y%m%d', added_time=0.0, x_offset=-889375.418, y_offset=4794775.243, lat_0=0.0, lon_0=0.0, proj='webmerc', field_name='precipitation_type', **kwargs)[source]#
Read a MeteoFrance data png file.
- Parameters:
filename (str) – Name of the file to read.
additional_metadata (dict of dicts, optional) – Dictionary of dictionaries to retrieve metadata during this read. This metadata is not used during any successive file reads unless explicitly included. A value of None, the default, will not introduct any addition metadata and the file specific or default metadata as specified by the Py-ART configuration file will be used.
xres, yres (float) – resolution of each grid point [km]
nx, ny, nz (int) – dimensions of the grid
date_format (str) – date format in file name
added_time (float) – seconds to add to the nominal time in the file name.
x_offset, y_offset (x and y offset from origin of coordinates of the) – projection (m). The default corresponds to the northwest corner of the Metropolitan French radar composite -9.965 53.670 (deg) in web mercator projection
lat_0, lon_0 (latitude and longitude of the origin of the projection) – (deg). Default corresponds to web mercator projection
proj (str) – projection. Can be webmerc or stere
field_name (str) – name of the field stored in the png file
- Returns:
grid (Grid) – Grid object containing the data.