.BuildingSystems.BoundaryConditions.WeatherData.BaseClasses.getLastHeaderElementTMY3

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 getLastHeaderElementTMY3
  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";
  output String element "Element at position 'pos' of the line that starts with 'start'";
end getLastHeaderElementTMY3;

Revisions


Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos