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,
ndimmust be 1 and coordinates for that sample position is returnedIf a 2D tuple,
ndimmust be 2 and coordinates for each sample position is returned
- Returns:
coords_outArray with gnomonic coordinates (gy, gx) of a shape given by pos. The coordinates are in the last axis.
See also