next up previous
Next: SLA_DCMPF - Interpret Linear Fit
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_DC62S - Cartesian 6-Vector to Spherical

SLA_DCC2S - Cartesian to Spherical   

ACTION:
Cartesian coordinates to spherical coordinates (double precision).
CALL:
CALL sla_DCC2S (V, A, B)

GIVEN:

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

RETURNED:

A,B D 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_DCMPF - Interpret Linear Fit
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_DC62S - Cartesian 6-Vector to Spherical

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