ExtendTimeSlots

Declaration: ExtendTimeSlots (NewNTSlots: integer; Data: TMat4D; MetaData: TMetaData): integer;
The function ExtendTimeSlots increases the data cube by adding additional time slots. The parameter NewNTSlots specifies the intended number of time slots, the parameter Data contains the four-dimensional raw data and the parameter MetaData contains the corresponding meta data.

The function returns the following error codes:

 0 ... everything is OK
-1 ... the parameter NewNTSlots is less or equal to the current number of time slots
-2 ... the new data cube exceeds the amount of available physical memory
-3 ... the size parameters of the meta data do not match the data cube

Hint: In order to directly access the metadata and the raw data of the currently loaded dataset you can use the pre-declared global variables MData and RawData.