climepi.ClimEpiDatasetAccessor.estimate_ensemble_stats#
- ClimEpiDatasetAccessor.estimate_ensemble_stats(data_var=None, uncertainty_level=90, polyfit_degree=3)#
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 (
strorlist, 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 3.
- Returns:
xarray.Dataset– A new dataset containing the estimated ensemble statistics for the selected data variable(s).