Description:
This routine
copies a compatible source of header information from one image to another. FITS headers may only
be copied to FITS headers, other sources may be copied without restriction.
Invocation
CALL
HDR_COPY( PARAM1, XNAME1, PARAM2, XNAME2, STATUS )
Arguments
PARAM1 = CHARACTER
(
) (Given)
Parameter name of the image containing the input source of header information (case insensitive).
XNAME1 =
CHARACTER
( )
(Given)
The name of the extension to be copied (’
FITS’
or ’
’
for FITS).
PARAM2 = CHARACTER
(
) (Given)
Parameter name of the image that you want to copy a header source into (case insensitive).
XNAME2 =
CHARACTER
( )
(Given)
The name of the destination header source (’
FITS’
or ’
’
for FITS, must be FITS if XNAME1
is FITS).
STATUS = INTEGER (Given and Returned)
The global status. If a header source
or destination is FITS and the other isn’t then IMG__BDEXT will be returned.
Notes:
-
Modified header items associated with the input source will copied to the new image.
-
This routine may be used to copy the same header source (from a single input image), to
more than one image at a time by using multiple parameter names for PARAM2. Multiple
parameter names are provided as a comma separated list (i.e. ’
OUT1,OUT2,OUT3’
).
Copyright © 2000-2003 Council for the Central Laboratory of the Research Councils