pysteps.utils.transformation.dB_transform

Contents

pysteps.utils.transformation.dB_transform#

pysteps.utils.transformation.dB_transform(dataset: Dataset, threshold=None, zerovalue=None, inverse=False) → Dataset#

Methods to transform precipitation intensities to/from dB units.

Parameters:
  • dataset (xarray.Dataset) – Dataset to be (back-)transformed as described in the documentation of pysteps.io.importers.

  • threshold (float, optional) – Optional value that is used for thresholding with the same units as in the dataset. If None, the threshold contained in metadata is used. If no threshold is found in the metadata, a value of 0.1 is used as default.

  • zerovalue (float, optional) – The value to be assigned to no rain pixels as defined by the threshold. It is equal to the threshold - 1 by default.

  • inverse (bool, optional) – If set to True, it performs the inverse transform. False by default.

Returns:

dataset – Dataset containing the (back-)transformed units.

Return type:

xarray.Dataset