pyacs.lib.coordinates.xyz2geospheric
- pyacs.lib.coordinates.xyz2geospheric.xyz2geospheric(x, y, z, unit='radians')[source]
Convert geocentric XYZ to geo-spherical (longitude, latitude, radius).
- Parameters:
x (float or array_like) – X coordinate in meters.
y (float or array_like) – Y coordinate in meters.
z (float or array_like) – Z coordinate in meters.
unit ({'radians', 'dec_deg'}, optional) – Units for longitude and latitude. Default is ‘radians’.
- Returns:
longitude (float or ndarray) – Longitude in requested unit.
latitude (float or ndarray) – Latitude in requested unit (geocentric, not co-latitude).
R (float or ndarray) – Radius from Earth center in meters.
Notes
Latitude here is geocentric (angle from equatorial plane), not the usual spherical co-latitude.