beam_directions_grid_to_euler#
- diffsims.generators.sphere_mesh_generators.beam_directions_grid_to_euler(vectors)[source]#
Convert list of vectors representing zones to a list of Euler angles in the bunge convention with the constraint that phi1=0.
- Parameters:
vectors (numpy.ndarray (N, 3)) – N 3-dimensional vectors to convert to Euler angles
- Returns:
grid – Euler angles in bunge convention corresponding to each vector in degrees.
- Return type:
numpy.ndarray (N, 3)
Notes
The Euler angles represent the orientation of the crystal if that particular vector were parallel to the beam direction [001]. The additional constraint of phi1=0 means that this orientation is uniquely defined for most vectors. phi1 represents the rotation of the crystal around the beam direction and can be interpreted as the rotation of a particular diffraction pattern.