scipp.allsorted#
- scipp.allsorted(x, dim, order='ascending')#
Check if all values of a variable are sorted.
If
order
is ‘ascending’, check if values are non-decreasing alongdim
.If
order
is ‘descending’, check if values are non-increasing alongdim
.
- Parameters:
- Returns:
bool
|DataGroup
[object
] – True if the variable values are monotonously ascending or descending (depending on the requested order), False otherwise.
See also