earthkit.meteo.score.xarray.resample¶
- earthkit.meteo.score.xarray.resample(*args, dim=None, out_dim='sample', n_iter=100, n_samples=None, replace=True, rng=None)¶
Resample arrays for bootstrapping.
- Parameters:
*args (
xarray object) – Arrays to sample. Must have the same size alongdimdim (
str) – Sample along this dimensionout_dim (
str) – Output dimension name for samplesn_iter (
int) – Number of bootstrapping iterationsn_samples (
intorNone) – Number of samples for each iteration. If None, use the number of inputs (size of the first array along the sampling dimension)replace (
bool) – Sample with replacement (on by default)rng (
numpy.random.Generator) – Random number generator
- Returns:
Resampled arrays (one element per input array)
- Return type:
tuple