ExtendRows

Declaration: ExtendRows (NewNRows: integer; Data: TMat4D; MetaData: TMetaData): integer;
The function ExtendRows increases the data cube by adding additional rows. The parameter NewNRows specifies the intended number of rows, 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 NewNRows is less or equal to the current number of rows
-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.