[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Sand 1, D-72076 Tübingen, Germany
New Address!   --   Neue Adresse!
[Uni logo]


HREVERSE Source code in hreverse.pro

HREVERSE

Name
       HREVERSE
Purpose
       Reverse an image about either dimension and update FITS astrometry
Explanation
       Reverse an image about either the X or Y axis, and create a new
       header with updated astrometry for the reversed image.
Calling Sequence
       HREVERSE,oldim,oldhd, [ subs, /SILENT ]   ;Update input image and header
               or
       HREVERSE, oldim, oldhd, newim, newhd, [ subs, /SILENT ]
Input Parameters
       OLDIM - the original image array
       OLDHD - the original image header
Optional Input Parameters
       SUBS - Subs equals 1 to reverse the order of the X dimension,
               2 to reverse Y order.  If omitted, then HREVERSE will
               prompt for this scalar parameter.
Optional Output
       NEWIM - the rotated image, with the same dimensions as Oldim
       NEWHD - header for newim containing updated astrometry info
               If output parameters are not supplied, the program
               will modify the input parameters OLDIM and OLDHD
               to contain the rotated image and updated header.
Keyword Parameters
       SILENT - if set and non-zero, then informative messages are suppressed.
Optional Keyword Output
       ERRMSG - If this keyword is supplied, then any error mesasges will be
               returned to the user in this parameter rather than depending on
               on the MESSAGE routine in IDL.   If no errors are encountered
               then a null string is returned.
Side Effects
       A right-handed coordinate system is converted into a left-
       handed one, and vice-versa.
Procedure
       The User's Library procedure REVERSE is used to reverse the image.
       The CD and CRPIX header parameters are updated for the new header.
       For AIPS type astrometry, the CDELT parameters are also updated.
       A history record is also added to the header
Procedures Used
       CHECK_FITS, EXTAST, REVERSE(), STRN(), SXADDPAR
Revision History
       Written, Aug. 1986 W. Landsman, STI Corp.
       Error modifying CROTA angles corrected     9-23-88
       Added format keyword, J. Isensee, July, 1990
       Work for ST Guide Star images, W. Landsman   HSTX, May 1995
       Compute CRPIX1 correctly for X reversal   W. Landsman HSTX August 1995
       Converted to IDL V5.0   W. Landsman   September 1997
       Added ERRMSG, Use double precision formatting, W. Landsman April 2000
       Recognize PC00n00m astrometry matrix   W. Landsman   December 2001

Last modified by pro2html on 2001 December 17 at 04:25 UTC

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

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