ess.sans.i_of_q.resample_direct_beam#

ess.sans.i_of_q.resample_direct_beam(direct_beam, wavelength_bins)#

If the wavelength binning of the direct beam function does not match the requested wavelength_bins, perform a 1d interpolation of the function onto the bins.

Parameters
  • direct_beam (DataArray) – The DataArray containing the direct beam function (it should have a dimension of wavelength).

  • wavelength_bins (Variable) – The binning in wavelength that the direct beam function should be resampled to.

Returns

DataArray – The direct beam function resampled to the requested resolution.