cart2geocentric
- typhon.geodesy.cart2geocentric(x, y, z, lat0=None, lon0=None, za0=None, aa0=None)[source]
Convert cartesian position to spherical coordinates.
The geocentric Cartesian coordinate system is fixed with respect to the Earth, with its origin at the center of the ellipsoid and its X-, Y-, and Z-axes intersecting the surface at the following points:
X-axis: Equator at the Prime Meridian (0°, 0°)
Y-axis: Equator at 90-degrees East (0°, 90°)
Z-axis: North Pole (90°, 0°)
A common synonym is Earth-Centered, Earth-Fixed coordinates, or ECEF.
If the optional arguments are given, it is ensured that latitude and longitude are kept constant for zenith or nadir cases, and the longitude for N-S cases. The optional input shall be interpreted as the [x,y,z] is obtained by moving from [lat0,lon0] in the direction of [za0,aa0].
- Parameters:
x – Coordinate in x dimension.
y – Coordinate in y dimension.
z – Coordinate in z dimension.
lat0 – Original latitude.
lon0 – Original longitude.
za0 – Orignal zenith angle.
aa0 – Orignal azimuth angle.
- Returns:
Radius, Latitude, Longitude
- Return type: