ess.powder.conversion.add_scattering_coordinates_from_positions#

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

Add two_theta and dspacing coordinates to the data.

The input data must have a wavelength coordinate. 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 a wavelength coordinate.

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