next up previous
Next: SLA_DD2TF - Days to Hour,Min,Sec
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_DCMPF - Interpret Linear Fit

SLA_DCS2C - Spherical to Cartesian   

ACTION:
Spherical coordinates to Cartesian coordinates (double precision).
CALL:
CALL sla_DCS2C (A, B, V)

GIVEN:

A,B D spherical coordinates in radians: $[\,\alpha,\delta\,]$ etc.

RETURNED:

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

NOTE:
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.


next up previous
Next: SLA_DD2TF - Days to Hour,Min,Sec
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_DCMPF - Interpret Linear Fit

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