Versions Compared

Key

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

...

  1. Check out the 'ModellerFunctions' package from the Open Earth repository (Direct link)
  2. Open your project in DeltaShell. Make sure that the model: 
    1. has at least 1 observation point
    2. has 'Water level (op)' enabled as output
    3. has successfully completed a simulation run. 
  3. In the toolbox window, add a new script. 

...

  1. First we will import the necessary modules from the ModellerFunctions packages:

    Code Block
    languagepy
    linenumberstrue
    from ModellerFunctions import dsget  # This module contains convenience functions for quick access
    from ModellerFunctions import dsplot as dpl # This module provides a more 'matplotlib' like plotting interface
  2. With the packages imported, we need to retrieve the flow model.

    Code Block
    languagepy
    linenumberstrue
    # Retrieve the flow model
    flow = dsget.GetFlow1DModel()
     
    # Check if you have the correct model:
    print 'Retrieving data from model: %s' % flow.Name
  3. asdf

...

Content by Label
showLabelsfalse
max5
spacesSobek
sortmodified
showSpacefalse
reversetrue
typepage
labelstut-scripting tutorial