The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Unit: SDL_matrix
Class: none
Declaration: function Read4DLayerAndAccumulate (FName: string; Layer, TSlot: integer; var Data: TDouble2DArray): integer;

The function Read4DLayerAndAccumulate reads the layer specified by the parameters Layer and TSlot from the binary file FName and adds the data to the array Data.

The function returns the following error codes:

 0 ... everything is OK
-1 ... Layer out of range
-2 ... TimeSlot out of range
-3 ... the size of the array Data does not match the data cube

Hint: Please note that the file specified by FName must comply with the binary file format used by TMat4D.SaveBinary, otherwise the routine may result in access violations or otherwise misleading results.

Last Update: 2023-Feb-06