pysteps.utils.transformation.NQ_transform

Contents

pysteps.utils.transformation.NQ_transform#

pysteps.utils.transformation.NQ_transform(dataset: Dataset, inverse: bool = False, **kwargs) → Dataset#

The normal quantile transformation as in Bogner et al (2012). Zero rain vales are set to zero in norm space.

Parameters:
  • dataset (xarray.Dataset) –

    Dataset to be transformed as described in the documentation of

    pysteps.io.importers.

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

  • a (float, optional) – The offset fraction to be used for plotting positions; typically in (0,1). The default is 0., that is, it spaces the points evenly in the uniform distribution.

Returns:

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

Return type:

xarray.Dataset

References

Bogner, K., Pappenberger, F., and Cloke, H. L.: Technical Note: The normal quantile transformation and its application in a flood forecasting system, Hydrol. Earth Syst. Sci., 16, 1085-1094, https://doi.org/10.5194/hess-16-1085-2012, 2012.