ess.sans.i_of_q.resample_direct_beam
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 (scipp._scipp.core.DataArray) – The DataArray containing the direct beam function (it should have a dimension of wavelength).
wavelength_bins (scipp._scipp.core.Variable) – The binning in wavelength that the direct beam function should be resampled to.
- Return type