spherical2xy#

StereographicProjection.spherical2xy(azimuth: ndarray | list | tuple | float, polar: ndarray | list | tuple | float, degrees: bool = False) Tuple[ndarray, ndarray][source]#

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].

Parameters:
azimuth

Spherical azimuth coordinate.

polar

Spherical polar coordinate.

degrees

If True, the coordinates are assumed to be in degrees. Default is False.

Returns:
x

Stereographic coordinate X of shape same shape as the input vector shape. Only the vectors with z coordinate positive (pole = -1) or negative (pole = 1) are returned.

y

Stereographic coordinate Y of shape same shape as the input vector shape. Only the vectors with z coordinate positive (pole = -1) or negative (pole = 1) are returned.

See also

vector2xy