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 with ess.powder.lowpass() before dividing into data. smooth_args is passed as keyword arguments to ess.powder.lowpass(). If None, the monitor is not smoothed.

Returns:

DataArraydata normalized by a monitor.