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.


Reading DX and RADOLAN data from German Weather Service

readDX 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_quant_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

HDF Data I/O

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
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 NetCDF

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.

Read Rainbow

read_Rainbow Reads Rainbow files files according to their structure

Raster and Vector I/O using GDAL

open_shape Open shapefile, 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
write_raster_dataset Write raster dataset to file format

Read IRIS Data Format

Reads data from Vaisala’s IRIS data formats

IRIS (Vaisala Sigmet Interactive Radar Information System)

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

To read from IRIS files numpy.memmap is used to get access to the data. The IRIS header (PRODUCT_HDR, INGEST_HEADER) is read in any case into dedicated OrderedDict’s. 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.

IrisRecord Class holding a single record from a Sigmet IRIS file.
IrisFile Class for retrieving data from Sigmet IRIS files.
read_iris Read Iris file and return dictionary.

Miscellaneous Data I/O

writePolygon2Text 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>