climpred.classes.HindcastEnsemble.generate_uninitialized

climpred.classes.HindcastEnsemble.generate_uninitialized#

HindcastEnsemble.generate_uninitialized(resample_dim: List[str] = ['init', 'member']) HindcastEnsemble[source]#

Generate uninitialized by resampling from initialized.

Parameters:

resample_dim – dimension to resample from. Must contain "init".

Returns:

resampled uninitialized ensemble added to HindcastEnsemble

Example

>>> HindcastEnsemble  # uninitialized from historical simulations
<climpred.HindcastEnsemble>
Initialized:
    SST      (init, lead, member) float64 -0.2392 -0.2203 ... 0.618 0.6136
Uninitialized:
    SST      (time, member) float64 -0.1969 -0.01221 -0.275 ... 0.4179 0.3974
Observations:
    SST      (time) float32 -0.4015 -0.3524 -0.1851 ... 0.2481 0.346 0.4502
>>> HindcastEnsemble.generate_uninitialized()  # newly generated from initialized
<climpred.HindcastEnsemble>
Initialized:
    SST      (init, lead, member) float64 -0.2392 -0.2203 ... 0.618 0.6136
Uninitialized:
    SST      (time, member) float64 0.04868 0.07173 0.09435 ... 0.4158 0.418
Observations:
    SST      (time) float32 -0.4015 -0.3524 -0.1851 ... 0.2481 0.346 0.4502