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 "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 [datetime, value].

Code Block
languagepy
titleGet timeseries
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
languagepy
titleGet timeseries
calculationPoint = GetComputationGridLocationByName(flowModel, "Gauging Station")
waterlevelResults = GetTimeSeriesFromWaterFlowModel(flowModel, calculationPoint, "Water level")

 

scrollbar