Check out the Hyperspy Workshop May 13-17, 2024 Online

get_angles#

PolarVectors.get_angles(intensity_index=2, intensity_threshold=None, accept_threshold=0.05, min_k=0.05, min_angle=None, **kwargs)[source]#

Calculate the angles between pairs of 3 diffraction vectors.

Parameters:
  • intensity_index (int, optional) – The column index of the intensity column. The default is 2.

  • intensity_threshold (float, optional) – The minimum intensity for a vector to be considered. The default is None.

  • accept_threshold (float, optional) – The maximum difference between the inscribed angle and the reduced angle for the inscribed angle to be accepted. The default is 0.05.

  • min_k (float, optional) –

    The minimum average delta k between the three vectors

    for a angle to be considered. The default is 0.05.

  • min_angle (float, optional) – The minimum inscribed angle for an angle to be considered. The default is None. Which means that two vectors even with a small angle between them will be considered.

  • **kwargs – Keyword arguments to hyperspy.api.signals.BaseSignal.map().

Returns:

angles – A signal with navigation dimensions as the original diffraction vectors containg an array of inscribed angles at each navigation position.

Return type:

BaseSignal