Tute M01 GIS Based Zpt Inspection Archive

From Tuflow
Revision as of 11:59, 9 January 2023 by ElizaCollison (talk | contribs) (→‎Introduction)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

This page details the GIS based inspection of Zpts, this is an alternative to the direct input of the elevation model described in the module 1 tutorial model. This approach is described in the following software packages:

  • MapInfo with Vertical Mapper
  • MapInfo with Encom Discover
  • ArcGIS with Spatial Analyst
  • Quantum GIS (QGIS)

Method

    To inspect the Zpts in your GIS package, follow these steps.
  1. To set all 2D cells within the domain as active cells (the default is that a 2D cell is inactive), enter the following line of text in the TGC file. Active cells are cells that can wet and dry. Zpts are only created for active cells, hence the need to make all cells active.
  2. Set Code == 1
  3. To create a GIS layer of the Zpts and then stop TUFLOW enter the following lines of text into the TGC file after the existing commands. The Write GIS Domain command is optional, but is useful to create a GIS layer showing the extent of the 2D domain for checking purposes.
    For MapInfo use the following commands:
    Write GIS Zpts == mi\2d_zpt_M01_5m_002.mif
    Write GIS Domain == ..\check\2d\2d_dom_check_M01.mif

    For ArcGIS or QGIS use the following commands:
    Write GIS Zpts == gis\2d_zpt_M01_5m_002.shp
    Write GIS Domain == ..\check\2d\2d_dom_check_M01.shp

  4. Add the following command to tell the TUFLOW simulation to stop after writing the zpt and domain files:
    STOP
  5. Save the TGC file.
  6. Before running TUFLOW again to create the Z points, the TGC file needs to be linked to the TCF file.
  7. Copy the M01_5m_001.tcf file as M01_5m_002.tcf
  8. Tip: In the text editor use File, Save As…
  9. Enter the following line of text into the TCF file. Enter an exclamation mark before the Write Empty MI Files command (or delete it) so TUFLOW now ignores this command. Save the TCF file.
  10. Geometry Control File == ..\model\M01_5m_002.tgc
  11. Also add the following lines to the TCF file so as to redirect output to the runs and log folders.
  12. Log Folder == Log
    Output Folder == ..\results\M01\2d ! output results to this folder
    Write Check Files == ..\check\2d\ ! write check files to this folder (ensure there is a “\” as the last character)
  13. Run TUFLOW again in the same manner as described earlier.
  14. The Console window should appear and once finished, it should look something like the image below. Click on OK of the message dialog box that appears to close the Console window.
    Tute M01 TUFLOW DOS Window02.png

  15. Import the 2d_dom_check_M01 file from the tuflow\check\2d folder into your GIS package and ensure that it is visible, with the aerial photo or Digital Elevation Model (DEM) also visible the location should be as shown below.
  16. Tute M01 MI Model Domain Check.png

  17. Assign Elevations to the Zpts. Once we have reviewed the 2D domain area is in the correct location and covers the area to be modelled we need to set the elevations in the 2D model by inspecting the Zpts. A basic description of the Zpts is in the Zpt description page. Elevations can be assigned to the Zpts in a number of ways, the tutorial model covers the following methods: