DMSTORAD
Name
dmstorad
Purpose (one Line)
Convert from degrees, minutes, and seconds to radians.
Description
Category
Astronomy
Calling Sequence
dmstorad, sign, deg, min, sec, radians
Inputs
sign : Sign associated with the inputs. Must be -1, or +1.
deg : Degrees. No restrictions.
min : Minutes. 0 <= min < 60.
sec : Seconds. 0.0 <= sec < 60.0.
If more than one of these are vectors, they must be the same length.
A mixture of scalar and vector input parameters is equivalent to all three
inputs being vectors: The scalar inputs are treated as replicated vectors.
Optional Input Parameters
Keyword Parameters
Outputs
radians : Converted angle in radians.
Common Blocks
Side Effects
Restrictions
Procedure
The input declination is in four parts. The sign is carried as a separate
value, to make angles near zero behave correctly.
Modification History
Copyright (C) 1987, by Marc W. Buie
Version dated 87/6/3
Ported by Doug Loucks, Lowell Observatory, August 12, 1993, from the
C-Language version written by Marc Buie.
2003/07/22, MWB, Relaxed error check to permit 60 in minutes or seconds field.