Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
scrollbar |
---|
In this step we want to get our measured data (we have in the file ", we will retreive the measured data from the file waterLevel_at_GaugingStation.csv") as timeseries. For this we use the function GetTimeSeriesFromCSVFile from the StandardFunctions library. This gives us a timeseries that is a list of as a time series. The function GetTimeSeriesFromCSVFile Image Added within the StandardFunctions library accomplishes this task, and returns a time series, which is a list composed by pairs of elements [datetime, value].
Code Block | ||||
---|---|---|---|---|
| ||||
measuredTimeSeries = GetTimeSeriesFromCSVFile(rootPath + "\waterLevel_at_GaugingStation.csv") |
Now that the model has run we also want to get the waterlevel at calculation point "Gauging Station" (the same point as our measurement data) as timeseries. This is done by using the following lines:
Code Block | ||||
---|---|---|---|---|
| ||||
calculationPoint = GetComputationGridLocationByName(flowModel, "Gauging Station") waterlevelResults = GetTimeSeriesFromWaterFlowModel(flowModel, calculationPoint, "Water level") |
Note: The icon Image Added indicates functions that you might find interesting to see how they have been built. You can do this by opening the corresponding library (another normal script python file on its own) in the toolbox and checking the code which defines the function or method you are interested in.
scrollbar |
---|