Skip to content

File formats

Jaap Baak edited this page Apr 26, 2023 · 3 revisions

Text format

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

Minutp format

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.

Open Matrix format

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.

Clone this wiki locally