xarray.Dataset.climepi.ensemble_stats

xarray.Dataset.climepi.ensemble_stats#

Dataset.climepi.ensemble_stats(data_var=None, uncertainty_level=90, estimate_internal_variability=True, polyfit_degree=4)#

Compute a range of ensemble statistics for a data variable.

Parameters:
  • data_var (str or list, optional) – Name(s) of the data variable(s) to compute the ensemble statistics for. If not provided, all non-bound data variables will be used.

  • uncertainty_level (float, optional) – Uncertainty level (percentage) for computing ensemble percentiles. Default is 90.

  • estimate_internal_variability (bool, optional) – Whether to estimate internal variability using the estimate_ensemble_stats method if only a single realization is available for each model and scenario (ignored if multiple realizations are available). Default is True.

  • polyfit_degree (int, optional) – Degree of the polynomial to fit to the time series if estimating internal variability. Default is 4.

Returns:

xarray.Dataset – A new dataset containing the computed ensemble statistics for the selected data variable(s).