ess.powder.conversion.add_scattering_coordinates_from_positions#
- ess.powder.conversion.add_scattering_coordinates_from_positions(data, graph)[source]#
Add
wavelength
andtwo_theta
coordinates to the data. The inputdata
must have atof
coordinate, as well as the necessary positions of the beamline components (source, sample, detectors) to compute the scattering coordinates.- Parameters:
data (
NormalizedByProtonCharge
[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 atof
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
))]