next up previous index
Next: BUFFERS: List the Contents Up: Input and Output of Previous: CD: Change the Current   Index

COPY: Copy an Image between Buffers


\begin{command}
\item[\textbf{Form: } COPY dest source {[BOX=n]}\hfill]{}
\ite...
...e program to copy only the part of the
image that is in box 'n'.}
\end{command}

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:
\begin{hanging}
\item{COPY into (dest) from image (source).}
\end{hanging}

Examples:
\begin{example}
\item[COPY 2 1\hfill]{copies the image in buffer 1 to
buffer 2...
...new image will be the size
of the box. See BOX for more details.}
\end{example}

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.



Jon Holtzman 2002-02-13