abs_max
- abs_max(data: xr.DataArray, *, result_dims: Hashable | Iterable[Hashable] = ()) xr.DataArray [source]
Calculate the absolute maximum values of
data
along all dims exceptresult_dims
.- Parameters:
data (xr.DataArray) – Data for which the absolute maximum should be calculated.
result_dims (Hashable | Iterable[Hashable]) – Dimensions of
data
which should be preserved and part of the resulting DataArray. Defaults to () which results in using the absolute maximum of all values.
- Returns:
Absolute maximum values of
data
with dimensionsresult_dims
.- Return type:
xr.DataArray