get_rotation_calibration#

CalibrationGenerator.get_rotation_calibration(real_line, reciprocal_line)[source]#

Determine the rotation between real and reciprocal space coordinates.

Parameters:
  • real_line (Line2DROI) – Line2DROI object drawn along known direction in real space.

  • reciprocal_line (Line2DROI) – Line2DROI object drawn along known direction in reciprocal space.

Returns:

rotation_angle – Rotation angle in degrees.

Return type:

float