ess.powder.correction.normalize_by_monitor#
- ess.powder.correction.normalize_by_monitor(data, *, monitor, wavelength_edges=None, smooth_args=None)[source]#
Normalize event data by a monitor.
The input is converted to wavelength if it does not already contain wavelengths.
- Parameters:
data (
DataArray
) – Input event data.monitor (
DataArray
) – A histogrammed monitor.wavelength_edges (
Optional
[Variable
], default:None
) – If given, rebin the monitor with these edges.smooth_args (
Optional
[dict
[str
,Any
]], default:None
) – If given, the monitor histogram is smoothed withess.powder.lowpass()
before dividing into data. smooth_args is passed as keyword arguments toess.powder.lowpass()
. IfNone
, the monitor is not smoothed.
- Returns:
DataArray
– data normalized by a monitor.