Tutorial M01 Results QGIS update V2 draft

From Tuflow
Jump to navigation Jump to search

Introduction

QGIS is used to view the 2D grid and mesh 2D results: (as well as the TUFLOW 1D results). This section describes how to view the following results using the TUFLOW Viewer 2:

  • The grid results (.tif) are inspected with the Profile Tool plugin. For installation, see Installation of Profile Tool
  • The mesh results (.xmdf, .tpc), including the bed elevation and time series, are inspected with the TUFLOW Viewer 2 as part of the TUFLOW Plugin. For more information on TUFLOW Viewer 2 and installation instructions, see the TUFLOW Viewer Documentation.

Method

View grid results with Profile Tool:

  1. Load the M01_5m_001_h_Max.tif file from the Module_01\TUFLOW\results\grids folder. It can either be dragged and dropped into QGIS, or loaded by selecting Layer > Add Layer > Add Raster Layer from the menu.
  2. This displays the maximum water level in the model recorded during the whole simulation.
  3. Use the Profile Tool to view the maximum water level and DEM.



View mesh results (Map Outputs) with TUFLOW Viewer 2:

  1. Ensure TUFLOW Viewer 2 has been activated. For backwards compatibility, the legacy TUFLOW Viewer is still selected by default. To activate TUFLOW Viewer 2:
    • Under the TUFLOW Plugin menu, check on the 'TUFLOW Viewer V2' option to enable the new viewer.

    File:Image of dropdown menu

    • To confirm the new viewer has been activated, check that the legacy TUFLOW Viewer icon has been replaced with the time-series icon . The TUFLOW Plugin toolbar should look like:



  2. Open the Map Outputs and Time Series results, either:
    • Within the QGIS Browser Panel drag the following layers into the QGIS workspace, or
    • Module_01\TUFLOW\results\M01_5m_001.xmdf > loads the map output mesh results
    • Module_01\TUFLOW\results\plot\M01_5m_001.tpc > loads the time series output results
    • In File Explorer, navigate to the files above and drag and drop them into the QGIS workspace.
  3. The Map Outputs show scalar datasets, e.g. depth and velocity, and vector datasets, e.g. velocity vectors. Only one scalar and one vector dataset can be displayed at the same time.



  4. In the layers panel, select M01_5m_001. In the 'Layer Styling' panel, in the 'Datasets' tab, click on the scalar dataset 'Depth' under 'Result Type'. Using the 'Temporal Controller', scroll through the output times. The results update as new output times are selected.
  5. Note: The styling of the Map Outputs can be changed in the 'Contours' tab.



  6. Click on a vector dataset 'Vector Velocity' by selecting the arrow icon to add it to the displayed 'Depth' and visualise them together. The vector output shows both direction and magnitude.
    Note: The appearance of vectors (colour, line width, symbology) can be changed in the 'Vectors' tab.



View mesh results (Time Series) with TUFLOW Viewer 2 from the 2d_po files:

  1. Select M01_5m_001_PLOT_L in the Layers panel and click 'TUFLOW Viewer Plot Window' from the TUFLOW Plugin toolbar. The plot widget will open. Within the plot widget, use the 'Result Names' menu to ensure the results M01_5m_001 are selected. Then select 'Flow' as the data type using the 'Data Types' menu. Finally, use the 'Selection' tool to select the 2d_po line. This shows the flow data across the 2d_po line (Type Q_).
  2. View the point time series for Level and Velocity dataset (Type H_ and V_). Select M01_5m_001_PLOT_P in the Layers panel and select 'Level' and 'Velocity' from the 'Data Types' menu (ensure 'Flow' is unselected). Use the 'Selection' tool to select the 2d_po point. This shows level and velocity at the point (Type H_ and V_). To move the velocity to a secondary axis, right click the plot and select 'Move to secondary axis'.



Conclusion

  • The basics of viewing 2D TUFLOW results in QGIS using the TUFLOW Viewer 2 were covered.
  • For further functionality, see TUFLOW Viewer 2 documentation.


Up
Back to Module 1 Main Page