get_sample_local#

orix.sampling.get_sample_local(resolution: int | float = 2, 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". See uniform_SO3_sample() for details.

**kwargs

Keyword arguments passed on to the sampling method.

Returns:
rot

Grid of rotations lying within grid_width of center.