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.