next up previous 269
Next: SLA_CS2C6 - Spherical Pos/Vel to Cartesian
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_CR2TF - Radians to Hour,Min,Sec


SLA_CS2C - Spherical to Cartesian

ACTION:
Spherical coordinates to Cartesian coordinates (single precision).
CALL:
CALL sla_CS2C (A, B, V)
GIVEN:

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

V R(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 269
Next: SLA_CS2C6 - Spherical Pos/Vel to Cartesian
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_CR2TF - Radians to Hour,Min,Sec

SLALIB --- Positional Astronomy Library
Starlink User Note 67
P. T. Wallace
19 December 2005
E-mail:ussc@star.rl.ac.uk

Copyright © 2010 Science and Technology Facilities Council