xarray.Dataset.climepi.estimate_ensemble_stats

xarray.Dataset.climepi.estimate_ensemble_stats#

Dataset.climepi.estimate_ensemble_stats(data_var=None, uncertainty_level=90, polyfit_degree=4)#

Estimate ensemble statistics for a data variable.

Designed for use when only a single realization is available (for a given model and scenario). Works by fitting a polynomial to time series.

Parameters:
  • data_var (str or list, optional) – Name(s) of the data variable(s) to estimate 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.

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

Returns:

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