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



LoadBinaryNoFmtCheck


Unit: SDL_matrix
Class: TMat4D
Declaration: function LoadBinaryNoFmtCheck (FName: string; TSlotStart, TSlotEnd: integer): integer;

The method LoadBinaryNoFmtCheck loads all data from the file FName starting with the time slot TSlotStart up to TSlotEnd without checking the numeric format. The hypercube matrix is resized accordingly.

If any of the time slot parameters TSlotStart and TSlotEnd is zero or negative, the entire data file is read into the matrix. If TSlotStart is within the data range but TSlotEnd is beyond the maximum time slot, only the available data are read (the size of the matrix is reduced accordingly).

The function returns the following error codes:

 0 ... everything is OK
-2 ... binary matrix file is not 4D matrix
-3 ... not enough memory, matrix is too big
-4 ... TSlotStart is beyond the maximum time slot

Hint 1: The method LoadBinaryNoFmtCheck triggers the OnPercentDone event to allow implementing a progress indicator when working with large files.

Hint 2: Please note that LoadBinaryNoFmtCheck does not check for the correct format of the binary matrix data on file. This routine should be used only if old data files are to be loaded (which did not contain any format information - the data used always double precision). For new implementations always use LoadBinary.



Last Update: 2020-Aug-14