PlasmaCalcs.tools.xarray_tools.xarray_coords.xarray_is_sorted

PlasmaCalcs.tools.xarray_tools.xarray_coords.xarray_is_sorted(array, *, increasing=True)
returns whether array is sorted; array must be 1D.
increasing: bool
True –> check for increasing order. vals[i] <= vals[i+1]
False –> check for decreasing order. vals[i] >= vals [i+1]