get_sample_local#
- orix.sampling.get_sample_local(resolution: Union[int, float] = 2, center: Optional[Rotation] = None, grid_width: Union[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.
- 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.
- method
"cubochoric"
(default),"haar_euler"
or"quaternion"
. Seeuniform_SO3_sample()
for details.- **kwargs
Keyword arguments passed on to the sampling method.
- Returns:
rot
Grid of rotations lying within
grid_width
of center.
See also