pysteps.utils.conversion.to_reflectivity#
- pysteps.utils.conversion.to_reflectivity(dataset: Dataset, zr_a=None, zr_b=None)#
Convert to reflectivity [dBZ].
- Parameters:
dataset (xarray.Dataset) –
Dataset to be (back-)transformed as described in the documentation of
pysteps.io.importers.Additionally, in case of conversion to/from reflectivity units, the zr_a and zr_b attributes are also required, but only if zr_a = zr_b = None. If missing, it defaults to Marshall–Palmer relation, that is, zr_a = 200.0 and zr_b = 1.6.
zr_a (float, optional) – The a and b coefficients of the Z-R relationship (Z = a*R^b).
zr_b (float, optional) – The a and b coefficients of the Z-R relationship (Z = a*R^b).
- Returns:
dataset – Dataset containing the converted units.
- Return type:
xarray.Dataset