ess.powder.calibration.detector_two_theta#

ess.powder.calibration.detector_two_theta(detector, graph)[source]#

Compute the scattering angle (two-theta) for each detector pixel.

Parameters:
  • detector (EmptyDetector[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int), ess.powder.types.EmptyCanRun (int))]) – Data array with detector positions.

  • graph (ElasticCoordTransformGraph[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int), ess.powder.types.EmptyCanRun (int))]) – Coordinate transformation graph for elastic scattering.

Return type:

DetectorTwoTheta[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int), ess.powder.types.EmptyCanRun (int))]