pysteps.utils¶
Implementation of miscellaneous utility functions.
pysteps.utils.interface¶
Interface for the utils module.
get_method (name, **kwargs) |
Return a callable function for the utility method corresponding to the given name. |
pysteps.utils.arrays¶
Utility methods for creating and processing arrays.
compute_centred_coord_array (M, N) |
Compute a 2D coordinate array, where the origin is at the center. |
pysteps.utils.conversion¶
Methods for converting physical units.
to_rainrate (R, metadata[, a, b]) |
Convert to rain rate [mm/h]. |
to_raindepth (R, metadata[, a, b]) |
Convert to rain depth [mm]. |
to_reflectivity (R, metadata[, a, b]) |
Convert to reflectivity [dBZ]. |
pysteps.utils.dimension¶
Functions to manipulate array dimensions.
aggregate_fields_time (R, metadata, …[, …]) |
Aggregate fields in time. |
aggregate_fields_space (R, metadata, …[, …]) |
Upscale fields in space. |
aggregate_fields (R, window_size[, axis, method]) |
Aggregate fields. |
clip_domain (R, metadata[, extent]) |
Clip the field domain by geographical coordinates. |
square_domain (R, metadata[, method, inverse]) |
Either pad or crop a field to obtain a square domain. |
pysteps.utils.fft¶
Interface module for different FFT methods.
get_numpy (shape[, fftn_shape]) |
|
get_scipy (shape[, fftn_shape]) |
|
get_pyfftw (shape[, fftn_shape, n_threads]) |
pysteps.utils.spectral¶
Utility methods for processing and analyzing precipitation fields in the Fourier domain.
rapsd (Z[, fft_method, return_freq, d]) |
Compute radially averaged power spectral density (RAPSD) from the given 2D input field. |
remove_rain_norain_discontinuity (R) |
Function to remove the rain/no-rain discontinuity. |
pysteps.utils.transformation¶
Methods for transforming data values.
boxcox_transform (R[, metadata, Lambda, …]) |
The one-parameter Box-Cox transformation. |
boxcox_transform_test_lambdas (R[, Lambdas, …]) |
Test and plot various lambdas for the Box-Cox transformation. |
dB_transform (R[, metadata, threshold, …]) |
Methods to transform precipitation intensities to/from dB units. |
NQ_transform (R[, metadata, inverse]) |
The normal quantile transformation. |
sqrt_transform (R[, metadata, inverse]) |
Square-root transform. |