spherical2xy_split#
- StereographicProjection.spherical2xy_split(azimuth: ndarray | list | tuple | float, polar: ndarray | list | tuple | float, degrees: bool = False) Tuple[ndarray, ndarray, ndarray, ndarray] [source]#
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.
- Parameters:
- azimuth
Spherical azimuth coordinate.
- polar
Spherical polar coordinate.
- degrees
If
True
, the coordinates are assumed to be in degrees. Default isFalse
.
- Returns:
x_upper
Stereographic coordinate X of upper hemisphere vectors, of shape same shape as the input vector shape.
y_upper
Stereographic coordinate Y of upper hemisphere vectors, of shape same shape as the input vector shape.
x_lower
Stereographic coordinate X of lower hemisphere vectors, of shape same shape as the input vector shape.
y_lower
Stereographic coordinate Y of lower hemisphere vectors, of shape same shape as the input vector shape.
See also