ess.external.powgen.load_and_preprocess_vanadium

ess.external.powgen.load_and_preprocess_vanadium

ess.external.powgen.load_and_preprocess_vanadium(vanadium_file, empty_instrument_file, proton_charge_filter_threshold=0.9)

Load and return data from a vanadium measurement.

Subtracts events recorded for the instrument without sample.

Attention

Empty instrument handling is not currently implemented! See the corresponding comment in the source code of ess.external.powgen.load.py

Parameters
  • vanadium_file (Union[str, Path]) – File that contains the vanadium data.

  • empty_instrument_file (Union[str, Path]) – File that contains data for the empty instrument. Must correspond to the same setup as vanadium_file.

  • proton_charge_filter_threshold (Real, default: 0.9) – See diffraction.filtering.remove_bad_pulses

Returns

DataArray – (Vanadium - empty instrument) with a wavelength coordinate.

Return type

scipp._scipp.core.DataArray