Versions Compared

Key

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

...

  1. Start DeltaShell and open your Flow model
  2. In the toolbox, open a new script
  3. Start your script by importing the necessary modules

    Code Block
    languagepy
    linenumberstrue
    import os
    from ModellerFunctions import dsget
  4. Next, use dsget to retrieve your Flow model location of the hisfile:

    Code Block
    languagepy
    linenumberstrue
    flow = dsget.GetFlow1DModel()
    print(dsget.GetMorHisFilePath(flow))
  5.  dsget has some functions to inspect this his file. 

    Code Block
    languagepy
    linenumberstrue
    # To see which output is available in the his file:
    components = dsget.GetMorphologyComponents(flow)
    timesteps = dsget.GetMorphologyTimeSteps(flow)
Info

Content by Label
showLabelsfalse
max5
spacesSobek
sortmodified
showSpacefalse
reversetrue
typepage
labelstutorial tut-modelling tut-scripting tut-morphology