ExtendColumns

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


Last Update: 2019-Jul-05