climepi.ClimEpiDatasetAccessor.yearly_average

climepi.ClimEpiDatasetAccessor.yearly_average#

ClimEpiDatasetAccessor.yearly_average(data_var=None, **kwargs)#

Compute the yearly mean of a data variable.

Thin wrapper around group_average.

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

  • **kwargs (dict, optional) – Additional keyword arguments to pass to xcdat temporal.group_average.

Returns:

xarray.Dataset – A new dataset containing the yearly mean of the selected data variable(s).