next up previous
Next: SLA_CALDJ - Calendar Date to MJD
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_BEAR - Direction Between Points on a Sphere

SLA_CAF2R - Deg,Arcmin,Arcsec to Radians   

ACTION:
Convert degrees, arcminutes, arcseconds to radians (single precision).

CALL:
CALL sla_CAF2R (IDEG, IAMIN, ASEC, RAD, J)

GIVEN:

IDEG I degrees
IAMIN I arcminutes
ASEC R arcseconds

RETURNED:

RAD R angle in radians
J I status:
1 = IDEG outside range 0-359
2 = IAMIN outside range 0-59
3 = ASEC outside range 0-59.999$\cdots$

NOTES:
1.
The result is computed even if any of the range checks fail.
2.
The sign must be dealt with outside this routine.


next up previous
Next: SLA_CALDJ - Calendar Date to MJD
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_BEAR - Direction Between Points on a Sphere

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