Produced by IDL 6.1
User Documentation

./guide
copy.pro

Last modification date:
Thu Jun 2 23:56:08 2005

copy

procedure copy, from_index, to_index

Copy the data from the from_index location to the to_index location. Anything in to_index is lost. This uses the value of !g.line. If it is set (1) then the array of line data (!g.s) is used, otherwise the array of continuum data (!g.c) is used. The contents of from_index remain unchanged by this operation.

Examples
Copy the contents of location 0 to location 10. Then copy the contents of 9 to location 0.
    copy, 0, 10
    copy, 9, 0
 
Uses
set_data_container
Version
$Id: copy.pro,v 1.5 2005/05/09 18:27:44 bgarwood Exp $

Parameters
from_index
in, required
integer
The index to copy values from.
to_index
in, required
integer
The index to copy the values to.


Produced by IDLdoc 1.6 on Thu Jun 2 23:56:46 2005