xy2spherical#
- InverseStereographicProjection.xy2spherical(x: float | ndarray, y: float | ndarray, degrees: bool = False) Tuple[ndarray, ndarray] [source]#
Return spherical coordinates, azimuth \(phi\) and polar \(theta\), defined as in the ISO 31-11 standard [Weisstein, 2005], from stereographic coordinates (X, Y).
- Parameters:
- x
X coordinates.
- y
Y coordinates.
- degrees
If
True
, the given angles are returned in degrees. Default isFalse
.
- Returns:
azimuth
Azimuth spherical coordinate corresponding to (X, Y). Whether the coordinates for the upper or lower hemisphere points are returned is controlled by
pole
(-1 = upper, 1 = lower).theta
Polar spherical coordinate corresponding to (X, Y). Whether the coordinates for the upper or lower hemisphere points are returned is controlled by
pole
(-1 = upper, 1 = lower).