xdas.ptp#
- xdas.ptp(da, dim=None, **kwargs)[source]#
Compute the range of values along the specified dimension.
- Parameters:
- Returns:
Range of values along the specified dimension (maximum - minimum). If dim is None, a single scalar value is returned; if dim is specified, the result has the same shape as the input data.
- Return type:
scalar or DataArray