pysteps.utils.transformation.sqrt_transform

Contents

pysteps.utils.transformation.sqrt_transform#

pysteps.utils.transformation.sqrt_transform(R, metadata=None, inverse=False, **kwargs)#

Square-root transform.

Parameters:
  • R (array-like) – Array of any shape to be transformed.

  • metadata (dict, optional) – Metadata dictionary containing the transform, zerovalue and threshold attributes as described in the documentation of pysteps.io.importers.

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

Returns:

  • R (array-like) – Array of any shape containing the (back-)transformed units.

  • metadata (dict) – The metadata with updated attributes.