AddLayersToDatacube

Declaration: AddLayersToDatacube(NumLayers, Group: integer; Feedback: boolean): integer;
Extends the data cube by NumLayers. The new layers are appended to the cube and belong to the spectral group defined by the Group parameter. The Feedback parameter controls whether a visual feedback is given during the execution of this function. The function returns the following error codes:
 0 .... everything OK
-1 ... group number is altready used

Hint: This function requires considerable intermediary memory space for copying the existing data to the extended data cube. The amount of auxiliary memory can be calculated by the following equation:
MSAux = MSorig * (NumLayers + GetCubeSize(dimL)) / GetCubeSize(dimL),
with MSAux being the auxiliary memory size, and MSOrig representing the current size.


Last Update: 2016-Aug-01