vectors#
Utils for operating on 2D Diffraction Patterns.
Functions
| 
 | Maps two-dimensional Cartesian coordinates in the detector plane to three-dimensional coordinates in reciprocal space, with origo in [000]. | 
| Calculates the norm of an array of cartesian vectors. | |
| Calculates the norm of an array of cartesian vectors. | |
| 
 | Filters the diffraction vectors to accept only those with magnitudes within a user specified range. | 
| 
 | Filters the diffraction vectors to accept only those not within a user specified proximity to detector edge. | 
| Normalize v, or return the vector directly if it has zero length. | |
| 
 | Calculates the rotation matrix from one pair of vectors to the other. | 
| 
 | Returns the number of entries in a list. | 
| 
 | Compute the angles between two lists of vectors in a cartesian coordinate system. | 
| 
 | Compute the angle between two vectors in a cartesian coordinate system. | 
| 
 | Filter an array of vectors to only the list of closest vectors to some set of basis vectors. | 
| 
 | Converts a list of vectors to polar coordinates. | 
| 
 | |
| 
 | |
| 
 | Calculate vectors coordinates of a mesh defined by a norm, a rotation and a shear component. | 
| 
 | This function takes a list of angles and returns the angles between each pair of angles. | 
| 
 | Creates combinations of num peaks but forces at least one of the combinations to have an intensity higher than the intensity_threshold. | 
| 
 | Convert a set of (flattened) peaks to a set of markers for plotting. | 
| 
 | Convert a set of points to a polygon by creating a polygon. | 
| 
 | Convert a set of points to a polygon collection by creating a polygon. | 
| 
 | Calculate the mean of the columns of a set of vectors. | 
| 
 | Convert a set of vectors to an image by binning the vectors into a 2D histogram. | 
| 
 | 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. | 
