Tute M01 Materials SAGA

From Tuflow
Jump to navigation Jump to search

Introduction

This page details the method for using SAGA to create the GIS based material types (land use areas). Once the GIS layers are setup (in this section), surface roughness or bed-resistance values (e.g. Manning's n) are assigned to each of these land use areas (in the main tutorial module, here).

The Module_Data\Module_01\SAGA\ folder contains the materials files that we will use.

Method

  1. Open the aerial photo from the Module_Data\Aerial_Photos\SAGA\Aerial_Photo_M01.sgrd
  2. Copy the 2d_mat_M01_002_R files from the Module_Data\Module_01\SAGA\ directory to TUFLOW\Model\Saga\. There should be four (4) files, with the extensions dbf, prj, shp and .shx.
  3. Load the TUFLOW\Model\Saga\2d_mat_M01_002_R.shp file.
  4. In the Data tab of the Workspace window, select both the Aerial_Photo_M01 and 2d_mat_M01_002_R items, right click on either of them and select show:
  5. Tute M01 SAGA 2d mat 1.png
  6. This will have created a new map window, with the material objects (these are regions). By default SAGA will give all of these objects the same style, something like the below.
  7. Tute M01 SAGA 2d mat 2.png


  8. Each of the regions contains an integer value that defines the land use type. To make this more obvious in SAGA, we can colour using the attribute. To do this
    • Select the 2d_mat_M01_002_R shape in the workspace tab
    • In the Object Properties window select the Settings tab
    • In the Colors section set the Type to Lookup Table'
    • In the Lookup Table that appears, select, table and click on the ... at the right of the prompt.
    • Select Load and at the prompt select the following file Module_01\SAGA\2d_mat_M01_002_R_colour_table.txt
    • This will bring up a list of attributes and colours. Select Okay.
    Tute M01 SAGA 2d mat Lookup.png
    • In the Object Properties window uncheck the Outline setting in the Display Section and select Okay.

    The region objects should now be colour coded based on the material ID attribute.

    Tute M01 SAGA 2d mat 3.png

    You may notice that the open pasture land-use that covers most of the study area has not been defined. This will be our default land use type. To save time we only need to define the areas where the land use differs from the default.
    NOTE: The material attribute associated with each polygon is an integer number specific to a type of land-use. In the next step we link the material ID (integer) to a roughness coefficient. A table is provided below for reference.

    Material ID Land Use Manning's n
    1 Pasture 0.06
    2 Roads 0.022
    3 Buildings 3.0
    4 Ponds and other water 0.03
    10 Vegetated Creek 0.03
    Alternatively if you would like to create your own material inputs rather than using the supplied dataset.
  1. Load the empty (template) file named 2d_mat_empty_R.shp from TUFLOW\Model\saga\empty\and save this in the TUFLOW\model\saga\ folder as as 2d_mat_M01_002_R.shp, add this to a map window with the aerial photo and edit the shape, digitise your own material polygons ensuring to assign a Material ID to each polygon using the land use types in the table above.

TUFLOW Geometry Control (TGC) File Updates

In order to read in the GIS layer created above. Enter the following text into the TGC file:
Set Mat == 1  ! Set every cell to a material ID of 1 (Pasture)
Read GIS Mat == mi\2d_mat_M01_002_R.shp

The Set Mat command sets all 2D cells to a Material ID of 1, which is used for pasture. The Read GIS Mat command updates any 2D cells that fall within the polygons in the 2d_mat layer with the Material attribute value of each polygon. As discussed for the cell code values in the previous section, the order of these Mat commands is important.

Conclusion

SAGA has been used to view or create a 2d_mat layer which defines the spatial extents of the land use categories. Material commands have been added to the TGC. Please return to Tutorial Module 1.