fappend -- Append an extension from one FITS file onto the end of another FITS file.
fappend infile[ext#] outfile
This task copies a FITS extension (or primary array) from one file and appends it to the end of the output file. If a FITS primary array is being copied then it will be converted to a FITS IMAGE extension in the output file. If the 'pkeywds' flag is set to true then any optional keywords in the primary header are copied into the appended extension's header as well.
1. Append the third extension from the FITS file test.fits to the FITS file test1.fits and copy all optional keywords from the primary header:
ft> fappend test.fits test1.fits pkeywds+
2. Append the first extension from the FITS file test.fits to the FITS file test1.fits without copying the optional keywords from the primary header:
ft> fappend test.fits test1.fits
3. Copy the primary array from the FITS file image.fits to the FITS file data44.fits:
ft> fappend image.fits data44.fits
4. Append the files specified in the file append.lis to the file out.fits
ft> fappend @append.lis out.fits
ftappend, ftmerge, ftcopy. fv, the interactive FITS file editor, can also be used to copy FITS extensions between files.