ess.spectroscopy.indirect.time_of_flight.mask_large_uncertainty_in_lut_detector#

ess.spectroscopy.indirect.time_of_flight.mask_large_uncertainty_in_lut_detector(table, error_threshold)[source]#

Mask regions in the wavelength lookup table with large uncertainty using NaNs.

The threshold is looked up under the key 'detector'. The same threshold is applied to all triplets.

Parameters:
  • table (LookupTable) – Lookup table with wavelength as a function of distance and time-of-arrival.

  • error_threshold (ess.reduce.unwrap.types.LookupTableRelativeErrorThreshold (dict)) – Threshold for the relative standard deviation (coefficient of variation) of the projected wavelength above which values are masked.

Return type:

ErrorLimitedLookupTable[NXdetector]

See also

essreduce.unwrap.mask_large_uncertainty_in_lut

The underlying implementation.