ess.powder.correction.normalize_by_monitor_histogram#

ess.powder.correction.normalize_by_monitor_histogram(detector, *, monitor, uncertainty_broadcast_mode)[source]#

Normalize detector data by a histogrammed monitor.

The detector is normalized according to

\[d_i^\text{Norm} = \frac{d_i}{m_i} \Delta \lambda_i\]
Parameters:
  • detector (CorrectedDspacing[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int), ess.powder.types.EmptyCanRun (int))]) – Input event data in wavelength.

  • monitor (WavelengthMonitor[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int), ess.powder.types.EmptyCanRun (int)), ess.reduce.nexus.types.CaveMonitor (int)]) – A histogrammed monitor in wavelength.

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

Returns:

NormalizedDspacing[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int), ess.powder.types.EmptyCanRun (int))]detector normalized by a monitor.

See also

ess.reduce.normalization.normalize_by_monitor_histogram

For details and the actual implementation.