Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

scrollbar

Using the timeseries that we created in the previous step (measuredTimeSeries and waterlevelResults) we want to We will now compare the results obtained in the current model with the measured data that we imported before to check how close the model is to those measurements. We will create a chart showing both timeseries. To do this we first need to import time series using the methods included in the ChartFunctions library and create chart series for the timeseries. In this case a point series for the measurements and a line series for the calculated waterlevel.. For the imported data, we will create a series of points (CreatePointSeries   Image Added ) and for the model results a line (CreateLineSeries  Image Added ). 

Code Block
languagepy
titleCreate chart series
from Libraries.ChartFunctions import *   # region Import libraries

dataSeries = CreatePointSeries(measuredTimeSeries)
lineResults = CreateLineSeries(waterlevelResults)

 

Then Next, we continue by creating the chart with the two chart series and opening a view for itwill create a chart containing both series and will open the corresponding view.

Code Block
languagepy
titleCreate chart
chart = CreateChart([dataSeries, lineResults])
chart.Name = "Water level at center Zwolle channels" 

view = OpenView(chart)

 

scrollbar