pysteps.io.importers.import_dwd_hdf5

pysteps.io.importers.import_dwd_hdf5#

pysteps.io.importers.import_dwd_hdf5(filename, qty='RATE', **kwargs)#

Import a DWD precipitation product field (and optionally the quality field) from an HDF5 file conforming to the ODIM specification.

Parameters:
  • filename (str) – Name of the file to import.

  • qty (, optional) –

    Quantity to read from the file. The currently supported identifiers are:

    • ’RATE’: instantaneous rain rate (mm/h)

    • ’ACRR’: hourly rainfall accumulation (mm)

    • ’DBZH’: maximum reflectivity (dBZ)

    The default is ‘RATE’.

  • dtype (str) – Data-type to which the array is cast. Valid values: “float32”, “float64”, “single”, and “double”.

  • fillna (float or np.nan) – Value used to represent the missing data (“No Coverage”). By default, np.nan is used.

Returns:

  • data (np.ndarray) – The requested precipitation product imported from the HDF5 file.

  • quality (None) – Placeholder for quality field (not yet implemented).

  • metadata (dict) – Dictionary containing geospatial metadata with the following keys:

    projectionstr

    PROJ.4 string defining the stereographic projection.

    ll_lon, ll_latfloat

    Coordinates of the lower-left corner.

    ur_lon, ur_latfloat

    Coordinates of the upper-right corner.

    x1, y1float

    Cartesian coordinates of the lower-left corner.

    x2, y2float

    Cartesian coordinates of the upper-right corner.

    xpixelsize, ypixelsizefloat

    Pixel size in meters.

    cartesian_unitstr

    Unit of the coordinate system (meters).

    yorigin :

    Origin of the y-axis.

    institution :

    Originating institution.

    accutimeint

    Accumulation period of the requested precipitation product.

    unitstr

    Unit of the data.

    transformstr

    Logarithmic transformation applied.

    zerovaluefloat

    Value representing no echo.

    thresholdfloat

    Precipitation threshold.