ess.powder.conversion.add_scattering_coordinates_from_positions#

ess.powder.conversion.add_scattering_coordinates_from_positions(data, graph)[source]#

Add wavelength and two_theta coordinates to the data. The input data must have a tof coordinate, as well as the necessary positions of the beamline components (source, sample, detectors) to compute the scattering coordinates.

Parameters:
Return type:

DataWithScatteringCoordinates[TypeVar(RunType, ess.reduce.nexus.types.BackgroundRun (int), ess.reduce.nexus.types.EmptyBeamRun (int), ess.reduce.nexus.types.SampleRun (int), TransmissionRun[ess.reduce.nexus.types.SampleRun (int)], TransmissionRun[ess.reduce.nexus.types.BackgroundRun (int)], ess.reduce.nexus.types.VanadiumRun (int))]