ess.sans.i_of_q.denoise_and_rebin_monitors
ess.sans.i_of_q.denoise_and_rebin_monitors¶
- ess.sans.i_of_q.denoise_and_rebin_monitors(monitors, wavelength_bins, non_background_range=None)¶
Subtract a background baseline from monitor counts, taken as the mean of the counts outside the specified
non_background_range
.- Parameters
monitors (Union[dict, scipp._scipp.core.DataArray]) – A DataArray containing monitor data, or a dict of monitor DataArrays. In the case of a dict of monitors, all entries in the dict will be background subtracted and rebinned.
wavelength_bins (scipp._scipp.core.Variable) – The binning in wavelength to use for the rebinning.
non_background_range (Optional[scipp._scipp.core.Variable]) – The range of wavelengths that defines the data which does not constitute background. Everything outside this range is treated as background counts.
- Return type