xarray.DataArray.qsel.average¶
- DataArray.qsel.average(self, dim)[source]¶
Average the data along the specified dimension(s).
The difference between this method and
xarray.DataArray.mean()is that this method averages the data along the specified dimension(s) and retains the averaged coordinate. This method also implicitly averages all coordinates that depend on the averaged dimension(s) instead of dropping them.- Parameters:
dim (
str|Collection[Hashable]) – The dimension(s) along which to average the data.- Returns:
DataArray– The data averaged along the specified dimension(s).- Return type: