QGIS plugin
1 Opening a model
This guide assumes you have already installed the Ribasim core, test models and QGIS plugin as described in the install page. As an example of an existing model, you can use the “basic” model from generated_testmodels.zip
.
2 Running a model
- Install the Ribasim core application as described in the install section
- Open a terminal like Powershell or Cmd and navigate to the model directory.
- Call Ribasim with the
.toml
file as input. E.g.<path_to_ribasim>/ribasim my_model.toml
. - In your model directory there is now a
results/
folder withbasin.arrow
andflow.arrow
output files.
3 Inspect a (large) model
For larger models the node tables can grow quite large. To facilitate inspection, the tables are linked via the node_id
field to the Node table, and react to the selection of the Node layer. That is, on selection of certain nodes—either via the map or the attribute table—the selection is also made in all related tables. This is also the case for the Link layer. It helps to set the attribute table of a table of interest to show selected features only (using the dropdown button on the bottom left).
4 Inspecting results
Before inspecting the results, verify that the run was successfully and the output files are there.
Click the “Time Series” button of the iMOD plugin.
Select the layer that you wish to plot. From the “Node” layer you can plot level or storage on Basin nodes. From the “Link” layer you can plot flow over flow links. Note that before switching between these, you typically have to click “Clear” to clear the selection. If you run a simulation with the model open in QGIS, you have to close and re-open the “iMOD Time Series Plot” panel for the new results to be loaded.
Select the variables that you want to plot.
Click “Select points” and select a node by dragging a rectangle around it on the map. Hold the Ctrl key to select multiple nodes.
The associated time series are shown the the graph.
Only the basin.arrow
and flow.arrow
can be inspected with the “iMOD Time Series Plot” panel. All Arrow files can be loaded as a layer by dragging the files onto QGIS. Right click the layer and select “Open Attribute Table” to view the contents.