scipp.allsorted#
- scipp.allsorted(x, dim, order='ascending')#
Check if all values of a variable are sorted.
If
orderis ‘ascending’, check if values are non-decreasing alongdim.If
orderis ‘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