functiongetHeaderElementTMY3

Gets an element from the header of a TMY3 weather data file

Extends from Modelica.Icons.Function (Icon for functions).

Information

This function scans the weather data file for a line that starts with the string
start
where start is a parameter. When this line is found, the function returns the element at the position number position, where position is a parameter. A comma is used as the delimiter of the elements.

Inputs

TypeNameDefaultDescription
StringfilNamName of weather data file
StringstartStart of the string that contains the elements
StringnameName of data element, used in error reporting
IntegerpositionPosition of the element on the line that contains 'start'

Outputs

TypeNameDefaultDescription
StringelementElement at position 'pos' of the line that starts with 'start'

Revisions