ClimoAccessor.mean¶
- ClimoAccessor.mean(dim=None, skipna=None, weight=None, **kwargs)[source]¶
Return the mean along dimension(s), preserving attributes and coordinates.
- Parameters
dim (str or list of str, optional) – The dimensions.
skipna (bool, optional) – Whether to skip NaN values.
weight (xr.DataArray, optional) – Optional weighting.
**kwargs – Passed to
truncate
. Used to limit bounds of mean.
Notes
ClimoPy makes an artifical distinction between the “mean” as a naive, unweighted average and the “average” as a cell measures-aware, mass-weighted average.