modelReadColumnByHeaderName
Read columns by header name
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | csvFileName | Modelica.Utilities.Files.loadResource("modelica://KeyWordIO/Resources/csv/tab.csv") | |
| Integer | row | Number of rows | |
| Integer | col | Number of columns | |
| Boolean | cache | false | Read file before compiling, if true |
| Integer | colConst | 4 | |
| Integer | rowConst | 72 | |
| String[:,:] | header | KeyWordIO.readStringCSV(csvFileName, 1, 1, 2, colConst, delimiter = "\t", cache = cache, useQuotedStrings = true) | |
| Real[:,:] | val | KeyWordIO.readRealCSV(csvFileName, 3, rowConst, 1, colConst, delimiter = "\t", cache = cache) |