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

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

Returns:
R : array-like

Array of any shape containing the (back-)transformed units.

metadata : dict

The metadata with updated attributes.