Tutorial M04: Difference between revisions

Content deleted Content added
No edit summary
Line 15:
= GIS Inputs =
Create, import and view input data:<br>
:*<u>[[Tutorial_M04_GIS_Inputs_QGIS | QGIS - SHP]]</u>
:*<u>[[Tutorial_M04_GIS_Inputs_QGIS_GPKG | QGIS - GPKG]]</u>
<br>
 
Line 22 ⟶ 23:
<ol>
<li>Save a copy of '''M02_001.tgc''' as '''M04_001.tgc''' in the '''Module_04\TUFLOW\model''' folder.
<li>Open the '''M04_001.tgc''' in a text editor and add the additional lines below the '<font color="blue"><tt>Read GIS Z Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_zsh_M02_rd_crest_001_L.shp | gis\2d_zsh_M02_rd_crest_001_P.shp</tt></font>' command: <br>
<u>'''QGIS - SHP'''</u><br>
<font color="blue"><tt>Read GIS Z Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_zsh_M02_cut_002_R.shp</tt></font> <font color="green"><tt> ! GIS layer used to define excavation through embankment</tt></font> <br>
<font color="blue"><tt>Read GIS Layered FC Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_lfcsh_M04_bridge_001_L.shp</tt></font> <font color="green"><tt> ! Layered flow constriction representing 2D bridge losses</tt></font> <br>
<u>'''QGIS - GPKG'''</u><br>
<font color="blue"><tt>Read GIS Z Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_zsh_M02_cut_002_R</tt></font> <font color="green"><tt> ! GIS layer used to define excavation through embankment</tt></font> <br>
<font color="blue"><tt>Read GIS Layered FC Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_lfcsh_M04_bridge_001_L</tt></font> <font color="green"><tt> ! Layered flow constriction representing 2D bridge losses</tt></font> <br>
<li>Save the TGC.
</ol>
The '''2d_zsh_M02_cut_002_R.shp''' file from Module 2 is first read to cut through the embankment. The 2d_lfcsh is then read to represent the structure. The order is important as the 2d_lfcsh has an invert value of 99999, it uses the underlying elevation values to represent the invert of the 2D bridge. If this was read before the 2d_zsh file, it would use the elevation of the embankment crest. <br>
 
=== TUFLOW Control File (TCF) ===
<ol>
<li>Save a copy of '''M02_5m_001.tcf''' as '''M04_5m_001.tcf''' in the '''Module_04\TUFLOW\runs''' folder.
<li>Open the '''M04_5m_001.tcf''' in a text editor and updatemake the following reference to the TGCupdates: <br>
<u>'''QGIS - SHP'''</u> <br>
<font color="blue"><tt>Geometry Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\M04_001.tgc</tt></font> <font color="green"><tt> ! Reference the TUFLOW Geometry Control File</tt></font> <br>
<u>'''QGIS - GPKG'''</u> <br>
<font color="blue"><tt>Spatial Database </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\gis\M04_001.gpkg</tt></font> <font color="green"><tt> ! Specify the location of the GeoPackage Spatial Database</tt></font> <br>
<font color="blue"><tt>Geometry Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\M04_001.tgc</tt></font> <font color="green"><tt> ! Reference the TUFLOW Geometry Control File</tt></font> <br>
<li>Update both the 2d_po line and point files: <br>
<u>'''QGIS - SHP'''</u> <br>
<font color="blue"><tt>Read GIS PO </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\gis\2d_po_M04_001_L.shp</tt></font> <font color="green"><tt> ! Reads in plot output line</tt></font> <br>
<font color="blue"><tt>Read GIS PO </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\gis\2d_po_M04_001_P.shp</tt></font> <font color="green"><tt> ! Reads in plot output point</tt></font> <br>
<u>'''QGIS - GPKG'''</u> <br>
<font color="blue"><tt>Read GIS PO </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_po_M04_001_L</tt></font> <font color="green"><tt> ! Reads in plot output line</tt></font> <br>
<font color="blue"><tt>Read GIS PO </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_po_M04_001_P</tt></font> <font color="green"><tt> ! Reads in plot output point</tt></font> <br>
<li>Save the TCF.
</ol>
Line 59 ⟶ 72:
= Check Files =
While the model is running, review the added features are specified correctly:
:*<u>[[Tutorial_M04_Check_Files_QGIS | QGIS - SHP]]</u>
:*<u>[[Tutorial_M04_Check_Files_QGIS_GPKG | QGIS - GPKG]]</u>
<br>