ess.powder.calibration.detector_two_theta#
- ess.powder.calibration.detector_two_theta(detector, source_position, sample_position, gravity)[source]#
Compute the scattering angle (two-theta) for each detector pixel.
- Parameters:
detector (
EmptyDetector[TypeVar(RunType,ess.reduce.nexus.types.SampleRun(int),ess.powder.types.VanadiumRun(int),ess.powder.types.EmptyCanRun(int))]) – Data array with detector positions.source_position (
Position[NXsource,TypeVar(RunType,ess.reduce.nexus.types.SampleRun(int),ess.powder.types.VanadiumRun(int),ess.powder.types.EmptyCanRun(int))]) – Position of the neutron source.sample_position (
Position[NXsample,TypeVar(RunType,ess.reduce.nexus.types.SampleRun(int),ess.powder.types.VanadiumRun(int),ess.powder.types.EmptyCanRun(int))]) – Position of the sample.gravity (
ess.reduce.nexus.types.GravityVector(scipp.Variable)) – Gravity vector.
- Return type:
DetectorTwoTheta[TypeVar(RunType,ess.reduce.nexus.types.SampleRun(int),ess.powder.types.VanadiumRun(int),ess.powder.types.EmptyCanRun(int))]