climepi.ClimEpiDatasetAccessor.yearly_average#

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

Compute the yearly mean of a data variable.

Thin wrapper around temporal_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-bounds 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).