pysteps.io.importers.import_opera_hdf5

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

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

Parameters:
filename : str

Name of the file to import.

qty :

The quantity to read from the file. The currently supported identitiers are: ‘RATE’=instantaneous rain rate (mm/h), ‘ACRR’=hourly rainfall accumulation (mm) and ‘DBZH’=max-reflectivity (dBZ). The default value is ‘RATE’.

Returns:
out : tuple

A three-element tuple containing the OPERA product for the requested quantity and the associated quality field and metadata. The quality field is read from the file if it contains a dataset whose quantity identifier is ‘QIND’.

Other Parameters:
 
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.