pysteps.noise.fftgenerators.generate_noise_2d_ssft_filter

pysteps.noise.fftgenerators.generate_noise_2d_ssft_filter(F, randstate=None, seed=None, **kwargs)

Function to compute the locally correlated noise using a nested approach.

Parameters:
F : array-like

A filter object returned by pysteps.noise.fftgenerators.initialize_nonparam_2d_ssft_filter() or pysteps.noise.fftgenerators.initialize_nonparam_2d_nested_filter(). The filter is a four-dimensional array containing the 2d fourier filters distributed over a 2d spatial grid.

randstate : mtrand.RandomState

Optional random generator to use. If set to None, use numpy.random.

seed : int

Value to set a seed for the generator. None will not set the seed.

Returns:
N : array-like

A two-dimensional numpy array of non-stationary correlated noise.

Other Parameters:
 
overlap : float

Percentage overlap [0-1] between successive windows (default 0.2).

win_type : {‘hanning’, ‘flat-hanning’}

Optional tapering function to be applied to X, generated with pysteps.noise.fftgenerators.build_2D_tapering_function() (default ‘flat-hanning’).

fft_method : str or tuple

A string or a (function,kwargs) tuple defining the FFT method to use (see pysteps.utils.fft.get_method()). Defaults to “numpy”.