ess.sans.normalization.normalize_qxy#
- ess.sans.normalization.normalize_qxy(numerator, denominator, return_events, uncertainties, wavelength_bands)[source]#
Perform normalization of counts as a function of Q. If the numerator contains events, we use the sc.lookup function to perform the division.
- Parameters:
numerator (
CleanSummedQxy
[TypeVar
(ScatteringRunType
,types.SampleRun
(int
),types.BackgroundRun
(int
)),types.Numerator
(scipp.DataArray
)]) – The data whose counts will be divided by the denominator. This can either be event or dense (histogrammed) data.denominator (
CleanSummedQxy
[TypeVar
(ScatteringRunType
,types.SampleRun
(int
),types.BackgroundRun
(int
)),types.Denominator
(scipp.DataArray
)]) – The divisor for the normalization operation. This cannot be event data, it must contain histogrammed data.return_events (
types.ReturnEvents
(bool
)) – Whether to return the result as event data or histogrammed data.wavelength_bands (
types.ProcessedWavelengthBands
(scipp.Variable
)) – Defines bands in wavelength that can be used to separate different wavelength ranges that contribute to different regions in Q space. Note that this needs to be defined, so if all wavelengths should be used, this should simply be a start and end edges that encompass the entire wavelength range.uncertainties (
UncertaintyBroadcastMode
) – The mode for broadcasting uncertainties. Seeess.reduce.uncertainty.UncertaintyBroadcastMode
for details.
- Returns:
IofQxy
[TypeVar
(ScatteringRunType
,types.SampleRun
(int
),types.BackgroundRun
(int
))] – The input data normalized by the supplied denominator.