Skip to content

Brown

Import path: earth2studio.perturbation.Brown

View source on GitHub

Documentation

Lat/Lon 2D brown noise

Parameters:

  • noise_amplitude (float | Tensor, default: 0.05 ) –

    Noise amplitude, by default 0.05. If a tensor, this must be broadcastable with the input data.

  • reddening (int, default: 2 ) –

    Reddening in Fourier space, by default 2

Note

Draws from the global Torch RNG until set_rng seeds it, after which draws come from an isolated stream that leaves global RNG state untouched.

__call__

__call__(x: DataArray) -> DataArray

Apply perturbation method

Parameters:

  • x (DataArray) –

    xarray DataArray intended to apply perturbation on, must contain "lat" and "lon" dimensions in the last two dims

Returns:

  • DataArray –

    Perturbed DataArray with the coordinates of the input