pysteps.utils.transformation.NQ_transform¶
-
pysteps.utils.transformation.
NQ_transform
(R, metadata=None, inverse=False, **kwargs)¶ The normal quantile transformation. Zero rain vales are set to zero in norm space.
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.
Other Parameters: - a : float, optional
The offset fraction to be used; typically in (0,1). Default : 0., i.e. it spaces the points evenly in the uniform distribution