xy2spherical#
- InverseStereographicProjection.xy2spherical(x: Union[float, ndarray], y: Union[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:
azimuthAzimuth 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).thetaPolar 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).