ess.estia.conversions.divergence_angle#

ess.estia.conversions.divergence_angle(position, sample_position, detector_rotation)[source]#

Compute the outgoing ray’s signed angle from the detector reference direction.

Use the laboratory x-z plane, with positive angles turning from +z towards +x. For an aligned detector, zero corresponds to the central reflected beam.

Parameters:
  • position (Variable) – Detector pixel position in laboratory coordinates.

  • sample_position (Variable) – Sample position in laboratory coordinates.

  • detector_rotation (Variable) – Detector reference angle measured from laboratory +z towards +x.

Returns:

Signed angular displacement from the detector reference direction.