Skip to content

LaggedEnsemble

Import path: earth2studio.perturbation.LaggedEnsemble

View source on GitHub

Documentation

Lagged Ensemble perturbation method. This method creates an ensemble by collecting initial conditions from different times, but verifying at the same time.

Parameters:

  • source (DataSource) –

    The source for which to draw initial conditions from.

  • lags (LeadTimeArray) –

    The list lags, in the form of LeadTimeArray, i.e., np.timedelta64, to include. Positive lags refer to future times whereas negative lags refer to previous times. Using positive lags should not be used for forecasting purposes but can be used for hindcasting. A lag of zero is effectively an unperturbed ensemble member.

    For example, lags = np.array([np.timedelta64(-6, "h"), np.timedelta64(0, "h")]) creates an ensemble with two lags, one of which is the current time and one is 6 hours in the past.

Note

For additional information:

__call__

__call__(x: DataArray) -> DataArray

Apply perturbation method

Parameters:

  • x (DataArray) –

    xarray DataArray intended to apply perturbation on, must have leading dimensions ("ensemble", "time", "lead_time") with an ensemble size equal to the number of lags

Returns:

  • DataArray –

    DataArray with each ensemble member filled with the initial condition from the respective lag of the data source