Declaration: ExtractFromCubeLayers(StatOp: TStatOp; LayerFrom, LayerTo, TimeSlot: integer; var DataMat: TDouble2DArray): integer;
Extracts various parameters from the layers in the range between LayerFrom and LayerTo. The parameter to be extracted is controlled by StatOp; allowed values are soMean, soStdDev, soMin and soMax for retrieving the mean, the standard deviation, the minimum and the maximum of each pixel of the specified layers. The results are written into the dynamic array DataMat, which is automatically resized to fit the size of the cube layers. The function returns the following error codes:
 0 ... everything is OK
-1 ... LayerFrom, LayerTo or TimeSlot are out of range

Last Update: 2018-Mai-02