to_gnomonic_coords#

EBSDDetector.to_gnomonic_coords(coords: ndarray, pos: int | tuple | None = None) ndarray[source]#

Return the corresponding gnomonic coordinates for the given detector pixel coordinates.

Parameters:
coords

A 2D array of coordinates of any shape whereby the pixel coordinates (y, x) are stored in the last axis.

pos

Sample position(s) (pattern(s)) to convert coordinates for:

  • If not given, coordinates are returned for each sample position

  • If an integer or a 1D tuple, ndim must be 1 and coordinates for that sample position is returned

  • If a 2D tuple, ndim must be 2 and coordinates for each sample position is returned

Returns:
coords_out

Array with gnomonic coordinates (gy, gx) of a shape given by pos. The coordinates are in the last axis.

See also

to_pixel_coords

Examples using EBSDDetector.to_gnomonic_coords#

Convert between detector coordinate formats

Convert between detector coordinate formats