View Results in QGIS with Crayfish

From Tuflow
Revision as of 11:03, 17 July 2017 by Chris Huxley (talk | contribs)
Jump to navigation Jump to search

Introduction

A plugin for QGIS has been developed (by Lutra Consulting) which allows the TUFLOW binary format (.dat or .xmdf) results to be viewed in QGIS without the need to convert these into shapefile or raster format. Installation instruction are available on the Crayfish page on the Lutra website.

Method

  1. Ensure that the Crayfish plugin has been installed (installation instructions are on the Crayfish homepage).
  2. Ensure QGIS is open.
  3. Open a TUFLOW layer by selecting Plugins >> Crayfish >> Add Crayfish Layer from the menu
  4. QGIS Crayfish 01.jpg
  5. In the dialogue navigate to the TUFLOW\results\M01\2d\ Folder and add the M01_5m_002_d.dat file (_d is depth).
  6. QGIS Crayfish 02.jpg
  7. Repeat the process for the following files:
    • M01_5m_002_h.dat (Head)
    • M01_5m_002_V.dat (Velocity)
    • M01_5m_002_q.dat (Flow)
    Tip Look for the "Add Crayfish Layer" in the toolbar
  8. A "Crayfish Viewer" dock should have been created when you opened the first results file. This contains option for choosing which parameter (depth, level, flow or velocity) to display and also the model output time. Select "Dep M01_5m_002" from the Quantity list and then scroll through the output times. The results should update as new output times are selected. The window should look similar the below:
  9. QGIS Crayfish 03.jpg
  10. Both the depth and water level (head) are scalar results. Switch across to the "Vel M01_5m_002" dataset, this is a vector output and has both direction and magnitude. The "Display Contour" and "Display Vectors" options should now be selectable. Scrolling through the output times should display both shading (velocity magnitude) and arrows (direction).
    QGIS Crayfish 04.jpg
  11. The appearance of the contour and vectors can be changed. Open the Vector Options and change the "Shaft Length" option to Scale to Magnitude. Select apply to update the display. The arrow length is now proportional to the speed of the water.
    QGIS Crayfish 05.jpg
  12. Please feel free to experiment with the visualisation options and get a feel for your TUFLOW results. Do the results look sensible? What happens at the road crossings?

Conclusion

We have covered the basics of viewing 2D TUFLOW results in QGIS. Please return to the tutorial model, module 1. In the next step we review the performance of the TUFLOW model (warnings, checks and mass balance), to return please click here