Skip to content

BredVector

Import path: earth2studio.perturbation.BredVector

View source on GitHub

Documentation

Bred Vector perturbation method, a classical technique for pertubations in ensemble forecasting.

Parameters:

  • model (Callable[[DataArray], DataArray]) –

    Dynamical model that maps a DataArray to a DataArray of the same shape, typically this is the prognostic AI model. TODO: Update to prognostic looper

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

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

  • integration_steps (int, default: 20 ) –

    Number of integration steps to use in forward call, by default 20

  • ensemble_perturb (bool, default: False ) –

    Perturb the ensemble in an interacting fashion, by default False

  • seeding_perturbation_method (Perturbation | None, default: None ) –

    Method to seed the Bred Vector perturbation. None creates a fresh Brown noise instance so its mutable RNG state is not shared between bred vectors.

Note

For additional information:

__call__

__call__(x: DataArray) -> DataArray

Apply perturbation method

Parameters:

  • x (DataArray) –

    xarray DataArray intended to apply perturbation on

Returns:

  • DataArray –

    Perturbed DataArray with the coordinates of the input