next up previous
Next: SLA_CC62S - Cartesian 6-Vector to Spherical
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_CALYD - Calendar to Year, Day

SLA_CC2S - Cartesian to Spherical   

ACTION:
Cartesian coordinates to spherical coordinates (single precision).
CALL:
CALL sla_CC2S (V, A, B)

GIVEN:

V R(3) $[\,x,y,z\,]$ vector

RETURNED:

A,B R spherical coordinates in radians

NOTES:
1.
The spherical coordinates are longitude (+ve anticlockwise looking from the +ve latitude pole) and latitude. The Cartesian coordinates are right handed, with the x-axis at zero longitude and latitude, and the z-axis at the +ve latitude pole.
2.
If V is null, zero A and B are returned.
3.
At either pole, zero A is returned.


next up previous
Next: SLA_CC62S - Cartesian 6-Vector to Spherical
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_CALYD - Calendar to Year, Day

SLALIB --- Positional Astronomy Library
Starlink User Note 67
P. T. Wallace
12 October 1999
E-mail:ptw@star.rl.ac.uk