Raw Data I/O#

Please have a look at the tutorial Supported radar data formats for an introduction on how to deal with different file formats.

Xarray backends#

Reading radar data into xarray Datasets using xarray.open_dataset and xarray.open_mfdataset.

Former available backends have been ported to xradar-package [1].

RadolanBackendEntrypoint

Xarray BackendEntrypoint for RADOLAN data.

Digital Elevation Model Data I/O#

Provide surface/terrain elevation information from SRTM data

download_srtm

Download NASA SRTM elevation data Only available with login/password

get_srtm

Get NASA SRTM elevation data

get_srtm_tile_names

Get NASA SRTM elevation data tile names

GDAL Raster/Vector Data I/O#

open_vector

Open vector file, return gdal.Dataset and OGR.Layer

open_raster

Open raster file, return gdal.Dataset

read_safnwc

Read MSG SAFNWC hdf5 file into a gdal georeferenced object

gdal_create_dataset

Creates GDAL.DataSet object.

write_raster_dataset

Write raster dataset to file format

VectorSource

DataSource class for handling ogr/gdal vector data

HDF Data I/O#

Former available xarray based code has been ported to xradar-package [1].

open_gpm_dataset

Reads GPM files version V07A.

read_generic_hdf5

Reads hdf5 files according to their structure

read_opera_hdf5

Reads hdf5 files according to OPERA conventions

read_gamic_hdf5

Data reader for hdf5 files produced by the commercial GAMIC Enigma V3 MURAN software

to_hdf5

Quick storage of one <data> array and a <metadata> dict in an hdf5 file

from_hdf5

Loading data from hdf5 files that was stored by to_hdf5

read_gpm

Reads GPM files for matching with GR

read_trmm

Reads TRMM files for matching with GR

IRIS/Sigmet Data I/O#

Reads data from Vaisala’s IRIS data formats. Former available code was ported to xradar-package [1] and is imported from there.

IRIS (Vaisala Sigmet Interactive Radar Information System)

See M211318EN-F Programming Guide ftp://ftp.sigmet.com/outgoing/manuals/

Reading sweep data can be skipped by setting loaddata=False. By default the data is decoded on the fly. Using rawdata=True the data will be kept undecoded.

read_iris

Read Iris file and return dictionary.

IrisRecordFile

IrisRawFile

IrisProductFile

Class for retrieving data from Sigmet IRIS Product files.

IrisCartesianProductFile

Class for retrieving data from Sigmet IRIS Cartesian Product files.

Miscellaneous Data I/O#

write_polygon_to_text

Writes Polygons to a Text file which can be interpreted by ESRI ArcGIS's "Create Features from Text File (Samples)" tool.

to_pickle

Pickle object <obj> to file <fpath>

from_pickle

Return pickled object from file <fpath>

get_radiosonde

Download radiosonde data from internet.

get_membership_functions

Reads membership function parameters from wradlib-data file.

NetCDF Data I/O#

Former available xarray based code has been ported to xradar-package [1].

read_edge_netcdf

Data reader for netCDF files exported by the EDGE radar software

read_generic_netcdf

Reads netcdf files and returns a dictionary with corresponding structure.

RADOLAN and DX Data I/O#

Reading DX and RADOLAN data from German Weather Service

Warning

Additionally to the binary composite formats DWD also provides data in ASCII format, which have a very limited header and need to extract product and datetime from the filename. Use on your own risk.

open_radolan_dataset

Open and decode a RADOLAN dataset from a file or file-like object.

open_radolan_mfdataset

Open multiple RADOLAN files as a single dataset.

read_dx

Data reader for German Weather Service DX product raw radar data files.

read_radolan_composite

Read quantitative radar composite format of the German Weather Service

get_radolan_filehandle

Opens radolan file and returns file handle

read_radolan_header

Reads radolan ASCII header and returns it as string

parse_dwd_composite_header

Parses the ASCII header of a DWD quantitative composite file

read_radolan_binary_array

Read binary data from file given by filehandle

decode_radolan_runlength_array

Decodes the binary runlength coded section from DWD composite file and return decoded numpy array with correct shape

Rainbow Data I/O#

Reads data from Leonardo’s Rainbow5 data formats. Former available code was ported to xradar-package [1] and is imported from there.

read_rainbow reads all data and metadata into a dictionary. Reading sweep data can be skipped by setting loaddata=False.

read_rainbow

Reads Rainbow files according to their structure

Xarray based Data I/O#

Note

The Xarray backend code has been moved to xradar-package [1].

WradlibVariable

Minimal variable wrapper.