>  Docs Center  >  Libraries  >  ASTROLIB  >  RADEC
Libraries

RADEC

RADEC

Name


RADEC

Purpose


To convert RA and Dec from decimal to sexagesimal units.

Explanation


The conversion is to sexagesimal hours for RA, and sexagesimal
degrees for declination.

Calling Sequence


radec, ra, dec, ihr, imin, xsec, ideg, imn, xsc, [/HOURS}

Inputs


ra - Right ascension, scalar or vector, in DEGREES unless the
              /HOURS keyword is set
dec - declination in decimal DEGREES, scalar or vector, same number
of elements as RA

Outputs


ihr - right ascension hours (INTEGER*2)
imin - right ascension minutes (INTEGER*2)
xsec - right ascension seconds (REAL*4 or REAL*8)
ideg - declination degrees (INTEGER*2)
imn - declination minutes (INTEGER*2)
xsc - declination seconds (REAL*4 or REAL*8)

Optional Keyword Input


      /HOURS - if set, then the input righ ascension should be specified in
              hours instead of degrees.

Restrictions


RADEC does minimal parameter checking.

Revison History


Written by B. Pfarr, STX, 4/24/87
Converted to IDL V5.0 W. Landsman September 1997
      Added /HOURS keyword W. Landsman August 2002



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us