ess.powder.correction.normalize_by_vanadium_dspacing_and_two_theta#

ess.powder.correction.normalize_by_vanadium_dspacing_and_two_theta(data, vanadium, uncertainty_broadcast_mode)[source]#

Normalize sample data binned in (d-spacing, 2theta) by a vanadium measurement.

If the vanadium data is binned, it gets histogrammed to the same bins as data. If it is not binned, it gets rebinned to the same coordinates as data. Then, the result is computed as

data / vanadium

And any bins where vanadium is zero are masked out with a mask called “zero_vanadium”.

Parameters:
Returns:

IntensityDspacingTwoTheta[TypeVar(_RunTypeNoVanadium, ess.reduce.nexus.types.SampleRun (int), ess.powder.types.EmptyCanRun (int))]data / vanadium. May contain a mask “zero_vanadium” which is True for bins where vanadium is zero.

See also

normalize_by_vanadium_dspacing

Normalization for 1d data binned in d-spacing.