You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

In this step, we will retreive the measured data from the file waterLevel_at_GaugingStation.csv as a time series. The function GetTimeSeriesFromCSVFile    within the StandardFunctions library accomplishes this task, and returns a time series, which is a list composed by pairs of elements [datetime, value].

Get timeseries
measuredTimeSeries = GetTimeSeriesFromCSVFile(rootPath + "\waterLevel_at_GaugingStation.csv")

 

Since the model has already been run, we can now obtain the water level time series at the calculation point Gauging Station (the same point where the imported data was measured ). This is done with the functions GetComputationGridLocationByName    and GetTimeSeriesFromWaterFlowModel  

Get timeseries
calculationPoint = GetComputationGridLocationByName(flowModel, "Gauging Station")
waterlevelResults = GetTimeSeriesFromWaterFlowModel(flowModel, calculationPoint, "Water level")

 

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.


 

In this step, we will retreive the measured data from the file waterLevel_at_GaugingStation.csv as a time series. The function GetTimeSeriesFromCSVFile    within the StandardFunctions library accomplishes this task, and returns a time series, which is a list composed by pairs of elements [datetime, value].

Get timeseries
measuredTimeSeries = GetTimeSeriesFromCSVFile(rootPath + "\waterLevel_at_GaugingStation.csv")

 

Since the model has already been run, we can now obtain the water level time series at the calculation point Gauging Station (the same point where the imported data was measured ). This is done with the functions GetComputationGridLocationByName and

GetTimeSeriesFromWaterFlowModel

Get timeseries
calculationPoint = GetComputationGridLocationByName(flowModel, "Gauging Station")
waterlevelResults = GetTimeSeriesFromWaterFlowModel(flowModel, calculationPoint, "Water level")

 

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