.Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3

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.

Interface

impure function getHeaderElementTMY3
  extends Modelica.Icons.Function;
  input String filNam "Name of weather data file" annotation(
    Dialog(loadSelector(filter = "Weather files (*.mos)", caption = "Select weather file")));
  input String start "Start of the string that contains the elements";
  input String name "Name of data element, used in error reporting";
  input Integer position(min = 1) "Position of the element on the line that contains 'start'";
  output String element "Element at position 'pos' of the line that starts with 'start'";
end getHeaderElementTMY3;

Revisions


Generated at 2024-12-04T19:25:49Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos