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:
  • data (FilteredData[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))]) – Input data with a tof coordinate.

  • graph (ess.powder.types.ElasticCoordTransformGraph (dict)) – Coordinate transformation graph.

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))]