scipp.issorted#
- scipp.issorted(x, dim, order='ascending')#
Check if the 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:
TypeVar
(_T
,Variable
,DataGroup
[object
]) – Variable containing one less dim than the original variable with the corresponding boolean value for whether it was sorted along the given dim for the other dimensions.
See also