ess.sans.normalization.process_wavelength_bands#

ess.sans.normalization.process_wavelength_bands(wavelength_bands, wavelength_bins)[source]#

Perform some checks and potential reshaping on the wavelength bands.

The wavelength bands must be either one- or two-dimensional. If the wavelength bands are defined as a one-dimensional array, convert them to a two-dimensional array with start and end wavelengths.

The final bands must have a size of 2 in the wavelength dimension, defining a start and an end wavelength.

Return type:

types.ProcessedWavelengthBands (scipp.Variable)