COPY: Copy an Image between Buffers

   

Form: COPY dest source [BOX=n]
dest
is the buffer where the new image will be stored.
source
is the original copy.
BOX=n
tells the program to copy only the part of the image that is in box 'n'.
COPY copies the image in buffer 'source' to the buffer 'dest'. The header associated with the source image is also copied. NOTE THAT THE DESTINATION BUFFER COMES FIRST ON THE COMMAND LINE! The syntax of the copy command is: Examples:
COPY 2 1
copies the image in buffer 1 to buffer 2, along with buffer 1's header and label.
COPY $B $A
copies the image image in buffer A to buffer B. A are B are variables.
COPY 1 2 BOX=7
copies the segment of image 2 that is in box 7 into image buffer 1. The size of the new image will be the size of the box. See BOX for more details.
The related command, WINDOW, is used to trim (``crop'') an image or spectrum.

If you copy wavelength-calibrated spectra, you should copy the entire spectrum. You should not use BOX= with wavelength-calibrated spectra. If you do, the wavelength scale of the spectrum after the COPY could end up incorrect.