Create a new region for this section. We will now compare the results obtained in the current model with the measured data that we imported before, in order to check how close the model is to those measurements. We will create a chart showing both time series using the methods included in the ChartFunctions library. For the imported data, we will create a series of points (CreatePointSeries    ) and for the model results a line (CreateLineSeries   ). 

Create chart series
from Libraries.ChartFunctions import *   # region Import libraries

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

 

Next, we will create a chart containing both series and will open the corresponding view.

Create chart
chart = CreateChart([dataSeries, lineResults])
chart.Name = "Water level at center Zwolle channels" 

view = OpenView(chart)

Note: The icon  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.

 

 

 

  • No labels