ess.powder.conversion.add_scattering_coordinates_from_positions#
- ess.powder.conversion.add_scattering_coordinates_from_positions(data, graph, calibration)[source]#
Add
two_thetaanddspacingcoordinates to the data.The input
datamust have awavelengthcoordinate. The positions of the required beamline components (source, sample, detectors) can be provided either by the graph or as coordinates.- Parameters:
data (
WavelengthDetector[TypeVar(RunType,ess.reduce.nexus.types.SampleRun(int),ess.reduce.nexus.types.VanadiumRun(int),ess.powder.types.EmptyCanRun(int))]) – Input data with awavelengthcoordinate.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:
DspacingDetector[TypeVar(RunType,ess.reduce.nexus.types.SampleRun(int),ess.reduce.nexus.types.VanadiumRun(int),ess.powder.types.EmptyCanRun(int))]