get_three_angles#
- pyxem.utils.vectors.get_three_angles(pks, k_index=0, angle_index=1, intensity_index=2, intensity_threshold=None, accept_threshold=0.05, min_k=0.05, min_angle=None)[source]#
This function takes the angle between three points and determines the angle between them, returning the angle if it is repeated using the accept_threshold to measure the acceptable difference between angle a and angle b.
- Parameters:
pks (numpy.ndarray) – The diffraction vectors to be analyzed
k_index (int, optional) – The index of the radial component of the diffraction vectors, by default 0
angle_index (int, optional) – The index of the angular component of the diffraction vectors, by default 1
intensity_index (int, optional) – The index of the intensity component of the diffraction vectors, by default 2
intensity_threshold (float, optional) – The minimum intensity of the diffraction vectors to be considered, by default None
accept_threshold (float, optional) – The maximum difference between angle a and angle b to be considered the same angle, by default 0.05
min_k (float, optional) – The minimum difference between the radial component of the diffraction vectors to be considered from the same feature, by default 0.05
min_angle (float, optional) – The minimum angle between two diffraction vectors. This ignores small angles which are likely to be from the same feature or unphysical.
- Returns:
three_angles – An array of angles between three diffraction vectors. The columns are: [k, delta phi, min-angle, intensity, reduced-angle]
- Return type: