get_sample_local#
- orix.sampling.get_sample_local(resolution: float | int = 2.0, center: Rotation | None = None, grid_width: int | float = 10, method: str = 'cubochoric', **kwargs) Rotation[source]#
Return a grid of rotations about a given rotation.
- Parameters:
- resolution
The characteristic distance between a rotation and its neighbour in degrees. Default is 2 degrees.
- center
The rotation at which the grid is centered. The identity is used if not given.
- grid_width
The largest angle of rotation in degrees away from center that is acceptable. Default is 10 degrees.
- method
"cubochoric"(default),"haar_euler"or"quaternion". Seeuniform_SO3_sample()for details.- **kwargs
Keyword arguments passed on to the sampling method.
- Returns:
rotGrid of rotations lying within
grid_widthof center.
See also