[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Waldhäuser Str. 64, D-72076 Tübingen, Germany
[Uni logo]


PRECESS_CD Source code in precess_cd.pro

PRECESS_CD

Name
       PRECESS_CD
Purpose
       Precess the CD (coordinate description) matrix from a FITS header
Explanation
       The CD matrix is precessed from EPOCH1 to EPOCH2.  Called by HPRECESS
Calling Sequence
       PRECESS_CD, cd, epoch1, epoch2, crval_old, crval_new, [/FK4]
Parameters
       CD - 2 x 2 CD (coordinate description) matrix in any units
               (degrees or radians).  CD will altered on output to contain
               precessed values in the same units.    On output CD will always
               be double precision no matter how input.
Input Parameters
       EPOCH1 - Original equinox of coordinates, scalar (e.g. 1950.0).
       EPOCH2 - Equinox of precessed coordinates, scalar (e.g. 2000.0)
       CRVAL_OLD - 2 element vector containing RA and DEC in DEGREES
               of the reference pixel in the original equinox
       CRVAL_NEW - 2 elements vector giving CRVAL in the new equinox
Keyword Parameters
       /FK4 - If this keyword is set, then the precession constants are taken
             in the FK4 reference frame.   The default is the FK5 frame.
Restrictions
       PRECESS_CD should not be used more than 2.5 centuries from the
       year 1900.
Procedure
       Adapted from the STSDAS program FMATPREC.  Precession changes the
       location of the north pole, and thus changes the rotation of
       an image from north up.  This is reflected in the precession of the
       CD matrix.   This is usually a very small change.
Procedures Used
       PRECESS
Revision History
       Written, Wayne Landsman, ST Systems  February 1988
       Fixed sign error in computation of SINRA     March 1992
       Added /FK4 keyword                           Feb 1994
       Converted to IDL V5.0   W. Landsman   September 1997

Last modified by pro2html on 2001 April 26 at 03:11 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically