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....



ReadLayer


Unit: SDL_matrix
Class: TMat4D
Declaration: function ReadLayer (FName: string; Layer, TSlot: integer): integer;

The method ReadLayer reads all data values of the layer specified by the parameters Layer and TSlot of the file FName and stores it in the matrix (in the same layer and time slot). Please note that this method returns a corresponding error code if the specified layer and time slot does not comply with the size of the external file. If the specified layer and time slot exceeds the bounds of the internal matrix the call to ReadLayer will have no effect at all.

The function returns the following error codes:

 0 ... everything is OK
-1 ... TSlot is out of range of the external file
-2 ... Layer if out of range of the external file
-3 ... the size of the layers of the external array does not match the internal layer size (NrOfColumns and NrOfRows must be the same)
-4 ... the file FName does not exist



Last Update: 2023-Feb-06