xarray.Dataset.climepi.variance_decomposition

xarray.Dataset.climepi.variance_decomposition#

Dataset.climepi.variance_decomposition(data_var=None, fraction=False, estimate_internal_variability=True, polyfit_degree=3)#

Decompose variance contributions from different climate uncertainty sources.

Partitions the variance of a data variable at each time point into contributions from internal variability, model uncertainty and scenario uncertainty.

Parameters:
  • data_var (str or list of str, optional) – Name of the data variable(s) to decompose.

  • fraction (bool, optional) – Whether to calculate the variance contributions as fractions of the total variance at each time, rather than the raw variances. Default is False.

  • estimate_internal_variability (bool, optional) – Whether to estimate internal variability 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 3.

Returns:

xarray.Dataset – A new dataset containing the variance decomposition of the selected data variable(s) along a new “source” dimension.