ess.nmx.scaling.get_wavelength_binned#

ess.nmx.scaling.get_wavelength_binned(mtz_da, wavelength_bins)[source]#

Bin the whole dataset by wavelength(LAMBDA).

Parameters:
  • mtz_da (mtz_io.NMXMtzDataArray (scipp.DataArray)) – The merged dataset.

  • wavelength_bins (scaling.WavelengthBins (types.scipp._scipp.core.Variable | int)) – The wavelength(LAMBDA) bins.

Return type:

scaling.WavelengthBinned (scipp.DataArray)

Notes

Wavelength(LAMBDA) binning should always be done on the merged dataset.