Astronomy · Interactive tool
Spherical Position Coordinates
Convert Cartesian position and geocentric azimuth/elevation coordinates.
Your inputs
Result
Calculated output
Enter inputs to calculate.
x = r cos(el) cos(az); y = r cos(el) sin(az); z = r sin(el). r = √(x²+y²+z²); az = atan2(y,x); el = atan2(z,√(x²+y²)).
These are geocentric spherical angles, not observer-local horizon coordinates or a transformation between inertial and Earth-fixed frames.