ess.powder.conversion.add_scattering_coordinates_from_positions#
- ess.powder.conversion.add_scattering_coordinates_from_positions(data, graph)[source]#
Add
wavelengthandtwo_thetacoordinates to the data. The inputdatamust have atofcoordinate, as well as the necessary positions of the beamline components (source, sample, detectors) to compute the scattering coordinates.- Parameters:
data (
TofDetector[TypeVar(RunType,ess.reduce.nexus.types.SampleRun(int),ess.reduce.nexus.types.VanadiumRun(int),ess.powder.types.EmptyCanRun(int))]) – Input data with atofcoordinate.graph (
ElasticCoordTransformGraph[TypeVar(RunType,ess.reduce.nexus.types.SampleRun(int),ess.reduce.nexus.types.VanadiumRun(int),ess.powder.types.EmptyCanRun(int))]) – Coordinate transformation graph.
- Return type:
WavelengthDetector[TypeVar(RunType,ess.reduce.nexus.types.SampleRun(int),ess.reduce.nexus.types.VanadiumRun(int),ess.powder.types.EmptyCanRun(int))]