Declaration: CopyLayer(SrcLayer, DestLayer, TimeSlot: integer): integer;
Copies the layer specified by the parameter SrcLayer to the layer specified by DestLayer. The parameter TimeSlot controls which time slot is to be used. Setting TimeSlot to a zero value copies the specified layer in all available time slots.

The function returns the following error codes:

 0 .... everything OK
-1 ... the metadata and the data cube do not match
-2 ... SrcLayer is out of range
-3 ... DestLayer is out of range
-4 ... TimeSlot is out of range