StereographicProjection#

class orix.projections.StereographicProjection(pole: int = -1)[source]#

Bases: object

Get stereographic coordinates (X, Y) from representations of vectors.

Parameters:
pole

-1 or 1, where -1 (1) means the projection point is the lower (upper) pole [00-1] ([001]), i.e. only vectors with z > 0 (z < 0) are returned.

Attributes

StereographicProjection.inverse

Return the corresponding inverse projection, InverseStereographicProjection, with the same projection pole.

Methods

StereographicProjection.spherical2xy(...[, ...])

Return stereographic coordinates (X, Y) from 3D unit vectors created from spherical coordinates, azimuth \(\phi\) and polar \(\theta\), defined as in the ISO 31-11 standard [Weisstein, 2005].

StereographicProjection.spherical2xy_split(...)

Return two sets of stereographic coordinates (X, Y) from 3D unit vectors created from spherical coordinates, azimuth \(\phi\) and polar \(\theta\), defined as in the ISO 31-11 standard [Weisstein, 2005]: one set for vectors in the upper hemisphere, and one for the lower.

StereographicProjection.vector2xy(v)

Return stereographic coordinates (X, Y) of 3D unit vectors.

StereographicProjection.vector2xy_split(v)

Return two sets of stereographic coordinates (X, Y) from 3D unit vectors: one set for vectors in the upper hemisphere, and one for the lower.

Examples using StereographicProjection#

Zoom region inset

Zoom region inset