In SOBEK 3.4 and previous versions, results are written to the following file: *.dsproj_data/<flowmodel name>_output/work/morph-gr.his.
In this tutorial we will
- use DeltaShell scripting to read this HIS file
- export results to csv file
Before starting this tutorial you need:
- to have successfully finished a morphological simulation with SOBEK
- to have followed or understand this tutorial
Step-by-step guide
- Start DeltaShell and open your Flow model
- In the toolbox, open a new script
Start your script by importing the necessary modules
import os from ModellerFunctions import dsget
Next, use dsget to retrieve your Flow model location of the hisfile:
flow = dsget.GetFlow1DModel() print(dsget.GetMorHisFilePath(flow))