check_monotonic

jwst.combine_1d.combine1d.check_monotonic(wavelength)[source]

Check if wavelength array is strictly monotonic (purely increasing or decreasing).

Parameters:
wavelengthlist or array

An array of wavelengths

Returns:
bool

True if the array is strictly increasing or strictly decreasing, False otherwise. Note that duplicates will return False.