ess.powder.correction.normalize_by_vanadium_dspacing#

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

Normalize sample data binned in d-spacing 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:
  • data (FocussedDataDspacing[TypeVar(_RunTypeNoVanadium, ess.reduce.nexus.types.SampleRun (int), ess.powder.types.EmptyCanRun (int))]) – Sample data.

  • vanadium (FocussedDataDspacing[ess.reduce.nexus.types.VanadiumRun (int)]) – Vanadium data.

  • uncertainty_broadcast_mode (UncertaintyBroadcastMode) – Choose how uncertainties of vanadium are broadcast to the sample data. Defaults to UncertaintyBroadcastMode.fail.

Returns:

IntensityDspacing[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_and_two_theta

Normalization for 2d data binned in d-spacing and :math`2theta`.