-
Notifications
You must be signed in to change notification settings - Fork 2
File formats
A matrix file in text format is a text file containing consecutive columns for:
- The row number (in transport modelling typically the origin zone)
- The colum number (in transport modelling typically the destination zone)
- The value of the first matrix
- The value of the second matrix
- ...
The Minutp format only stores integer values. For this reason, the matrix cells are multiplied by a factor (eg 100 or 1000) and then rounded to an integer value. This way, some decimal places of the floating point matrix values are preserved. Because the precision factor used to write the matrices to file is not stored in the file itself, the factor must always be passed to the constructor of the matrix reader objects reading the matrix file.
The Open Matrix Format (omx) is supported by many software vendors. It is built on top of the HDF5 standard. To use the format it is necessary to point the Path-class property of the THdf5Dll class (in matio.hdf5.pas) to the location where the hdf5 dll can be found. Since the omx standard does not support reading matrices by index, the omx reader class is not registered at the global MatrixFormats-object.