Difference between revisions of "Tutorial M01 Configure TUFLOW Project QGIS GPKG"

From Tuflow
Jump to navigation Jump to search
Line 20: Line 20:
 
:*'Create Template Files': This creates an 'empty' folder in '''Module_01\TUFLOW\model\gis''' folder. It contains all the TUFLOW template files in the projection set above. It is important to create new template files for each project to ensure the projection is correct.
 
:*'Create Template Files': This creates an 'empty' folder in '''Module_01\TUFLOW\model\gis''' folder. It contains all the TUFLOW template files in the projection set above. It is important to create new template files for each project to ensure the projection is correct.
 
:*'Tutorial Model': Sets a command within the automatically generated TCF instructing TUFLOW to run the tutorial model licence free.  
 
:*'Tutorial Model': Sets a command within the automatically generated TCF instructing TUFLOW to run the tutorial model licence free.  
<li>Click 'OK' and a TUFLOW DOS console window opens. This runs the first part of a TUFLOW model initialisation and creates TUFLOW folder structure, projection file, TUFLOW empty GIS files and base TCF file called '''Create_Empties.tcf'''.<br>
+
<li>Click 'OK' and a TUFLOW DOS console window opens. This runs the first part of a TUFLOW model initialisation and creates TUFLOW folder structure, projection file, TUFLOW empty GIS files and base TCF file called '''Create_Empties.tcf'''.<br><br>
<li>Save the QGIS workspace by selecting Project > Save As. Navigate to the '''Module_01''' folder and save it with extension .qgz.<br><br>
 
 
[[File:M01_GPKG_Configure_01.PNG]]<br><br>
 
[[File:M01_GPKG_Configure_01.PNG]]<br><br>
 
<br>
 
<br>
Line 34: Line 33:
 
<li>From the Browser panel, right click on 'Favorites' and select 'Add a Directory...'.
 
<li>From the Browser panel, right click on 'Favorites' and select 'Add a Directory...'.
 
<li>Navigate to the '''Module_01''' folder and select it.<br><br>
 
<li>Navigate to the '''Module_01''' folder and select it.<br><br>
[[File:Animation_M01_GPKG_Browser_Panel_01a.gif]]<br><br></ol>
+
[[File:Animation_M01_GPKG_Browser_Panel_01a.gif]]<br></ol>
 +
<br>
 +
=Save QGIS Workspace=
 +
Save the QGIS workspace by selecting Project > Save As. Navigate to the '''Module_01''' folder and save it with extension .qgz.<br>
 +
<ol>[[File:Animation_M01_Configure_03e.gif]]<br></ol>
 
<br>
 
<br>
  

Revision as of 20:07, 30 May 2023

Page Under Construction

Introduction

QGIS is used to configure TUFLOW project with the TUFLOW plugin. For installation, see Installation of TUFLOW Plugin.

TUFLOW Project Configuration

The TUFLOW plugin is used to configure the TUFLOW project. This includes specifying the model and executable file paths, defining the GIS projection (i.e. the geographic coordinate system used for the TUFLOW model, all inputs need to use the same projection) and writing GIS empty files for model inputs:

  1. Open the 'Configure TUFLOW Project' tool by selecting Plugins > TUFLOW > Editing > Configure / Create TUFLOW Project.
  2. Click 'Select CRS' and use the filter to select: WGS 84 / UTM zone 60S.
  3. Click 'Browse...' to select the folder location containing the TUFLOW folder. This creates the default TUFLOW model directory and sub-folders.
  4. Click 'Browse...' to select the location of the TUFLOW single precision executable file.
  5. Select 'GPKG' as the GIS Format.
  6. Select 'TUFLOW Classic / HPC' as the TUFLOW Engine.
  7. Tick all box options:
    • 'Save Default Settings Globally (for all projects)': The settings configured by this window sets the default for opening a new QGIS workspace.
    • 'Create Model Folder Structure': The TUFLOW sub-folders (e.g. bc_dbase, model, runs) are made within the Module_01\TUFLOW folder. The check and results folder are automatically created when running the first TUFLOW model.
    • 'Create Template Files': This creates an 'empty' folder in Module_01\TUFLOW\model\gis folder. It contains all the TUFLOW template files in the projection set above. It is important to create new template files for each project to ensure the projection is correct.
    • 'Tutorial Model': Sets a command within the automatically generated TCF instructing TUFLOW to run the tutorial model licence free.
  8. Click 'OK' and a TUFLOW DOS console window opens. This runs the first part of a TUFLOW model initialisation and creates TUFLOW folder structure, projection file, TUFLOW empty GIS files and base TCF file called Create_Empties.tcf.

    M01 GPKG Configure 01.PNG


    Animation M01 Configure 03e.gif


Map Folder to Browser Panel

Set the Module_01 folder as a favourite in the QGIS Browser Panel:

  1. Right click anywhere in the Toolbar panel and tick on 'Browser Panel' from the 'Panels' options.
  2. From the Browser panel, right click on 'Favorites' and select 'Add a Directory...'.
  3. Navigate to the Module_01 folder and select it.

    Animation M01 GPKG Browser Panel 01a.gif


Save QGIS Workspace

Save the QGIS workspace by selecting Project > Save As. Navigate to the Module_01 folder and save it with extension .qgz.

    Animation M01 Configure 03e.gif


Conclusion

  • The Configure TUFLOW Project tool was used to set up TUFLOW model folders, define the GIS projection and write GIS empty files.


Up
Go-up.png Back to Module 1 Main Page