Tute M04 QGIS 1d nwk Archive

From Tuflow
Jump to navigation Jump to search

Introduction

In this section we create the 1D channels. For this tutorial a number of completed channels are provided as a guide. If this was not provided, the method would be open the "1d_nwk_empty_P.shp" file from the TUFLOW\model\gis\empty folder and save this in the TUFLOW\model\gis folder and begin the edits in this layer.

Method

  1. Ensure the cross-section layer is open.
  2. Copy the 1d_nwk_M04_channels_001_L and 1d_nwk_M04_culverts_001_Lfiles from the Module_Data\Module_04\gis\ folder and into the TUFLOW\model\gis\ folder you are working in. Open both files in QGIS.
  3. Make both layers visible and toggle editing on for the 1d_nwk_M04_channels_001_L layer.
  4. Ensure that snapping to the cross sections and also to the 1d_nwk layer is enabled in Settings >> Snapping Options.
  5. Tute M04 QGIS 1d nwk 01.jpg

  6. Zoom in to the south western edge of the model, where the main inflow occurs.
  7. Using the Add Feature tool, digitise a polyline from the end of the channel provided, along the creek centreline and right click on a vertex of the next cross-section downstream to finish the channel feature. Each channel (from cross-section to cross-section) is required to be a separate polyline feature digitised from upstream to downstream. Don't fill in the GIS attributes yet, we will fill these out at the end.
  8. Tip: Using a marker line symbol style with arrows along the polyline makes it easier to ensure the polylines you are drawing are digitised from upstream to downstream. Tute M04 QGIS 1d nwk 02.jpg

    Tute M04 QGIS 1d nwk 03.jpg

  9. At the location of the 1st culvert (in the 1d_nwk_M02_culverts_001_L layer) we need to ensure that the channel snaps to the layer upstream of the culvert. Make sure this layer is open and selectable. At the downstream end of the culvert, ensure that the start of the open channel is snapped to the end of the culvert. In these locations there are three layers snapped together: the culvert, channel and cross-section.
  10. Tute M04 QGIS 1d nwk 04.jpg

  11. The first two sections downstream of the channel have been digitised in the layer provided. In this area there is an alternative flow path over a meander in the channel. A secondary weir channel has been digitised in the layer provided. We need to connect this secondary to the main channel. Digitise a line from the upstream end of the weir to the junction of the channels, as shown in the image below.
  12. Tute M04 QGIS 1d nwk 05.jpg

  13. Enter "X" into the GIS attribute Channel_Type. This "X", or channel connector, connects the channels together but indicates that the weir is not the main channel path.
  14. Tute M04 QGIS 1d nwk 06.jpg

  15. At the downstream of the weir enter another channel "X" connector, starting from the end of the weir and ending at the downstream channel junction.
  16. Tute M04 MI 1d nwk 05.jpg

  17. Continue digitising channels between the cross-sections. At the second culvert, ensure you snap to each end of the culvert. At the downstream end of the model, snap to the channel provided in the layer.
  18. Tute M04 MI 1d nwk 06.jpg

  19. Once all the the channel lines have been drawn we will update the GIS attributes. The first thing we need to do is select only the channels that do not have any attributes set. The channels provided as part of the module data already have the correct attributes. To select the channels without a channel Type assigned, we will use the 'look for' function in the attribute table. To access this right-click on the 1d_nwk_M04_chanel_001_L layer in the layers side bar and open the attribute table.
  20. Open the advanced search and enter the search string below:
  21. (TYPE = NULL)  OR (TYPE  = '')

    Tute M04 QGIS 1d nwk 08.jpg

  22. We can now update this selection. To do this click on the Field Calculator icon in the attribute table. In the field calculator dialogue check the Update existing field. From the drop down list select the 'TYPE' attribute to update. Set the expression to:
    'S'

  23. Tute M04 QGIS 1d nwk 09.jpg

    Tute M04 QGIS 1d nwk 07.jpg
  24. Repeat the update process to update the Use_Chan_Storage_at_Nodes to "T". This tells TUFLOW to automatically calculate the storage at the nodes (ends of the channel) based on the cross-sectional properties and the channel length.
  25. Update the Mannings_n to 0.09 (don't use quotes because this is a numerical field). Set the Upstream_Invert and Downstream_Invert to -99999.
  26. To avoid assigning a channel name to each of these channels we will also use the update function to do this automatically. Use the process above to update the ID column of the query table. In the Value enter:
    'FC01_'|| tostring(  $id )
    . This includes the creek ID - "FC01" and then adds a unique feature ID. As these were digitised from upstream to downstream, this value should increase in order from upstream to downstream.
  27. Tute M04 QGIS 1d nwk 10.jpg

  28. Toggle editing for the 1d_nwk_M04_channels_001_L to off and save the edits.

  29. In Tutorial module 2 we created a number of 1D/2D links for the culverts. We did this in a number of ways, one of these was to create the link using a 1d_nwk layer (link to Module 2). Now that we are modelling the entire creek in 1D we need to remove these. As these links are created on the points objects we need only remove the reference to these in the control file. We will detail this in the section on updating the control files.

Conclusion

The 1D network layers are now ready for input into TUFLOW. Please return to the tutorial where the next step is to define the 1d/2d connections.