Show/Hide Toolbars

CatchmentSIM Help

Navigation: Tutorials

Tutorial 1

Scroll Prev Top Next More

 

Download Tutorial 1 Data and Solution File

 

Tutorial 1 guides the user through developing a CatchmentSIM project for the Tweed River catchment, New South Wales, Australia. The tutorial will show you how to use Google Earth to setup a CatchmentSIM project, sampling raster DEM tiles, and utilising GIS input data to assist in the hydrologic modeling.

 

 

 

A video of this tutorial can be found on the next page (high speed connection required).

 

SETUP PROJECT

 

To begin any new project, the "Create new project" link can be selected from the opening startup screen, or if the startup screen is not displayed, by selecting the CatchmentSIM Drop Down >> New Project. This will display the new project dialogue, as shown below.

 

 

Ex5-Adv-ProjectNewProj

 

Enter any relevant information in the Project Information text fields (these can be left blank if you wish).

 

Click the 'Browse' button and enter the filename and save location of your project. This must be completed for all projects

 

Now you must select an appropriate projection for the project by clicking the 'Set Projection' button. A projection is just a way to represent locations on the Earth's surface.  In this tutorial, we will use "Map Grid of Australia (MGA 94)". To make this selection, choose Map Grid of Australia 1994 (MGA94) from the top drop down menu. Now we must specify what MGA zone the catchment is located in. This particular catchment is located in Zone 56 so select "MGA Zone 56 (GDA94)\p28356" from the bottom drop down menu (as shown in image below).

 

Ex5-Adv-ProjectNewProjProj

 

 

hmtoggle_plus0        Additional Options for Defining Project Projection

 

 

The next step in setting up our project is to set the CatchmentSIM project extents. This is basically a large rectangle that fully encloses the proposed catchment extent.  This step can be a challenge when the exact extent of the catchment is unknown. If you are uncertain it is best to overestimate the design plane extents.

 

The design plane extents can be specified manual by entering appropriate Xmin, Xmax, Ymin and Ymax values. Alternatively, CatchmentSIM allows you to use Google Earth to expedite the specification of design plane extents. We will utilise this, in conjunction with a .kml file of river basins, to visualise the area of interest within Google Earth and then use this Google Earth view to setup our project extents.

 

To carry this out, open Google Earth (if you do not have it installed, visit http://www.google.com/earth/index.html to download a free version).

 

Once Google Earth is open, click File >> Open and navigate to the Tutorial 1 data folder, and select the "River Basins 1997.kml" file. Once this has been added to Google earth, locate the Tweed River catchment by navigating to the "Places" section on the left side of the Google Earth. Expand the "River Basins 1997.kml" entry to expose the "Features (BNAME)" folder. Navigate down the alphabetical list of river basins until you find the "TWEED RIVER".  Now double click on this entry and Google Earth should zoom to the extents of the Tweed River catchment, as shown below.

 

Click to Enlarge Image

Click to Enlarge Image

 

CatchmentSIM can now be used to read the Google Earth view extents. This is completed by returning to CatchmentSIM and clicking 'Read from Google Earth'. You may receive the below message:

 

Ex5-GEerrorMsg

 

If you do receive this message, it is simply advising that your Google Earth view is not orientated correctly (ie: North may not be directly upward). By clicking "OK", the view will be rotated to the correct orientation, and you can click 'Read from Google Earth' in CatchmentSIM once again.

 

You will notice that the Xmin, Xmax, Ymin and Ymax values become populated, however, a keen GIS user will notice that these coordinates are in latitude/longitude. CatchmentSIM requires the design plane extent coordinates to be in the same projection as that which we specified when we click the "Set Projection" button. This is an issue as we have specified our project to be in MGA56 projection. Therefore, a conversion from latitude/longitude to MGA56 needs to occur. CatchmentSIM is able to carry out this conversion by selecting the "Convert Projection" button. This will open a dialogue, firstly asking what the source projection is (this is the projection we are converting from), which is latitude/longitude (which on this occasion will be the default option) so we can simply click "OK". Another dialogue will appear asking what the destination projection we want to convert to will be. As we have previously selected MGA56 as our project projection, CatchmentSIM will automatically select this projection and we can simply select 'OK' once again. You will now notice that the design extents are now in MGA56 co-ordinates.

 

hmtoggle_plus0        Additional Options for Defining Project Extents

 

 

The Scaling Factors and Units section can be left unchanged. These are updated automatically depending on the projection units (e.g., metres or feet) and typically do not need to be modified.

 

You can now click 'OK' at the bottom on the dialogue to complete the project setup process.

 

 

CREATE DEM

The next step in all projects is to setup a Digital Elevation Model (DEM) for our project. The DEM is a digital representation of the variation in terrain elevation across your study area. It is created by effectively dividing your study area into a grid of uniformly sized cell and assigning an elevation to each on these grid cells.

 

The creation of a suitable DEM requires some user discretion as to the appropriate grid size for the required application. For example, a large grid size could be used (e.g., >100metres) for a large, rural catchment where there are  only very gradually variation in terrain elevation. However, for a small urbanised catchment with nuerous flow impediments (e.g., roadway embankment) may necessitate the use of a much small grid size (e.g., 2 metres).

 

For this project, we will utilise a 100m pixel size (100m x 100m grid cell size). To set this, select 'Create DEM >> Setup Blank DEM'.

 

The following dialogue will appear. We will leave the top radio button "1. DEM Extents" set on "Use Design Plane" as we are happy to use our project extents to also define our DEM extents. In the "2. DEM Resolution" we will select the "2b) Set Cell Size (Square Cells Only)" radio button as we want to setup our DEM using square pixels/cells. Enter 100 in the input box that appears (to set each DEM cell to 100m x 100m in size). When you enter this number you should notice that the resulting DEM file size is calculated, in this case ~1.59 MB. Click "OK".

 

Ex5-DEMsetup

 

 

hmtoggle_plus0        More Information on DEM size

 

 

ASSIGN DEM ELEVATIONS

In the previous step, we setup a DEM with a pixel size of 100m (i.e., a grid covering our entire project area with each cell measuring 100m x 100m in size). We now need to assign elevations to these pixels.

 

A variety of topographic data sources can be used to assign elevations to our "blank" DEM. This includes contours, raster DEMs, TINs as well as spot heights. Instructions on how to use contours is provided in Tutorial #2.

 

hmtoggle_plus0        Where to find DEM information?

 

For this tutorial, we will utilise SRTM Raster DEM data. SRTM is freely available grid-based elevation information that is provided at a 90m resolution. This is detailed enough to populate our project which utilises a 100m pixel size, but may not be appropriate for other projects which require a significantly smaller pixel size.

 

To assign elevations from the SRTM data, navigate to "Create DEM >> Raster DEM". Now navigate to the tutorial 1 data >> DEM  folder and select the two SRTM DEM tiles (*.hgt) that are provided, click "OK" and you should see that CatchmentSIM samples these tiles and assigns elevations to the majority of the DEM pixels in the project, as shown below. These SRTM files have been packaged with this tutorial, but SRTM can be downloaded free of charge to most locations in the world.

 

ex5-adv-sampleddem_1_zoom50

 

hmtoggle_plus0        Hint: Automated selecting/downloading of SRTM tiles

 

As can be seen from the above image, there appears to be some white 'gaps' in the DEM, especially in the mountainous areas of the project (where the SRTM DEM collection may have been hampered by steep topography or dense vegetation cover). This indicates that the SRTM data has not assigned elevations to these areas. In order for the algorithms in CatchmentSIM to operate correctly, all DEM cells need to be assigned elevations. These "unassigned" pixels can be interrogated to confirm that no elevation is assigned to them by moving the mouse over the white pixels, and viewing the elevations assigned to them in the bottom left hand corner of the screen. As suspected, "Not Defined" is returned when moving over the white pixels. To assign elevations to these, we will use the inbuilt interpolation tools in CatchmentSIM, which can be accessed through "Create DEM >> Interpolation Tools >> Interpolate Remaining Areas". The defaults on the dialogue can be left as-is and "OK" selected. CatchmentSIM will then complete a distance weighted average interpolation to assign elevations to these unassigned pixels based on the elevations of surrounding pixel. Once this process is complete, all DEM pixels should have an elevation assigned to them.

 

An inherit problem of raw DEMs is the fact that they are not instantly in a suitable condition to describe the flowpaths that exist across an area of interest. The major limitation that exists lies with "flat and pit" pixels. These pixels have an elevation the same as, or lower than, adjacent pixels, causing localised "sinks". This damages the flow connectivity and will ultimately result in unreliable flowpaths, stream and catchments. This is typically a result of "noise" in the input DEM information (e.g., vegetation).

 

CatchmentSIM includes a number of routines to remove the unwanted flat and pit pixels. The location and extent of these flat and pit pixels can be visualized by selecting the checkbox adjacent to the "Flat and Pits" in the left pane of CatchmentSIM. This left pane is the "view controller" and allows any CatchmentSIM layer to be turned on or off. The display order of layers can also be modified.

 

An image of the flat and pit pixels in our current project is shown below. Blue pixels indicate pits (pixels lower than adjacent pixels), and red indicates flat pixels (pixels with the same elevation as adjacent pixels). As can be seen, the majority of flats and pits are located along lower areas of the DEM (ie: where watercourses would lie), and the majority of flat pixels exist where the ocean/river would be expected.

 

ex5-adv-flat&pits_1_zoom50

 

 

 

IMPORT GIS FILES

Prior to carrying out any DEM "conditioning", we will add some GIS files to assist with the DEM conditioning process. For this tutorial, the GIS files include an ocean polygon and a coarse stream layer of the major watercourses in the area.

 

The ocean polygon can be added by selecting "GIS >> Ocean". Select the 'Aus_SWBD_Ocean.shp' file in the 'Data' folder and click "Open" and then "OK". A message box will appear stating that the *.shp file does not have any *.prj file and, therefore, a projection could not be determined. CatchmentSIM will convert input layers that are not in the same projection as our project to make sure the file is located in the correct position spatially. But it needs to know the projection of the input file before it can do this. Therefore, click "OK" and then select "Longitude/Latitude" from the top drop down box of the projection window (as we know the ocean layer is in latitude/longitude projection). Then click "OK". CatchmentSIM will perform all of the necessary coordinate conversion to ensure that ocean polygon layer overlays the project area correctly.
 

Now we will use the ocean polygon to lower the DEM cells below the ocean. This will help us condition the DEM by ensuring the ocean is the lowest point in our DEM. Select "DEM Conditioning >> Ocean >> Set Ocean Elevation". Enter a value of -10. The resulting DEM should look similar to that shown below.

 

Click to Enlarge Image

Click to Enlarge Image

 

Next, the watercourses layer can be added by selecting "GIS >> Streams". Navigate to the "Data/Streams" folder, select the "watercl.shp" file and click "Open". Click "OK" when the "Import Data" window appears. A message box will appear stating that the *.shp file does not have any *.prj file and, therefore, a projection could not be determined. Click "OK" and then select "Longitude/Latitude" from the top drop down box of the projection window. Then click "OK". The watercourses are now displayed in blue.

 

Any supported vector or raster layer can be added as a visual layer by selecting the green "+" button on the CatchmentSIM toolbar.

 

Click to Enlarge Image

Click to Enlarge Image

 

 

DEM MANIPULATION

It is important to note that there is no 'undo' function in CatchmentSIM, so any DEM manipulations made cannot be reversed. Hence, it is advisable to save your project prior to carrying out DEM manipulations to allow a 'fallback' project if you decide you are unhappy with the DEM modifications. Regular saving using the "CatchmentSIM Drop Down >> Save As" is recommended to allow you to revert to basically any stage of the CatchmentSIM project development process.

 

To allow effective catchment mapping and ensure flow can be routed from every pixel to a the anticipated catchment outlet (in our case, the ocean), the DEM needs to be manipulated to allow continuous downstream flow path movement. The first DEM manipulation tool that can be used if you  have watercourse data available is enforce streams. This can be complimented by Stream Burning, and finally, the Breaching Algorithm.

 

Firstly, we will "Enforce Streams" to help the condition the DEM. Enforcing streams ensures that all pixels underlying a stream/watercourse layer are always flowing "downhill". It will not alter pixel elevations where the downstream movement of water would naturally occur based on the DEM pixel elevations.  However, if it encounters an adverse slope it will linearly lower the DEM elevation beneath the stream layer until it encounters another pixel with a lower elevation. To enforce streams, select "DEM Conditioning >> Enforce Streams". You should find that this will remove most of the flat and pit pixels underlying the watercourse layer. Note that this conditioning step is not essential, but is advisable if you have a reliable stream/watercourse layer.

 

Now we can apply the breaching algorithm to remove the remaining flat and pit pixels. This algorithm ensures flow from every pixel in the DEM can always move in a downstream direction to the lowest point in the DEM. In our project, we would expect that the ocean would provide the lowest point in our DEM (remember we previously set the ocean elevation to -10m to help ensure it was the lowest point in the DEM.

 

Select "DEM Conditioning >> Breaching Algorithm".  Typically you can retain the default parameters. Click "Process Entire DEM". You will be asked if you wish to exclude oceans from the algorithm. Ensure that the oceans are excluded as this will decrease the processing time significantly (and we aren't really interested in mapping catchments across the ocean in any case).
 
Ex5-Adv-Project18
 

As the breeching algorithm processes, you can visually see the areas of the DEM's where the elevations have been modified to allow continuous flow paths, as indicated by the yellow lines that appear between flat and pit pixels.  Further information on how the Breaching Algorithm finds the optimum downstream flow path can be found here.  Once the algorithm has completed, you can remove temporary yellow "breach lines" by simply pressing 'F2', which is the refresh display hotkey.

 

Click to Enlarge Image

Click to Enlarge Image

 

We can now see if the DEM has been conditioned sufficiently by mapping a few flow paths from within out anticipated catchment and ensuring they are routed to our desired outlet location.

This can be completed using the "Draw Pixel Flow Path" feature available by "Flow Mapping >> Map Pixel Flow Path".  Once you have selected this feature, left-click anywhere within the DEM and you should see a yellow flow path drawn indicating the flowpath that water will take from that particular pixel. If we click anywhere within the middle of our DEM (our area of interest), we should see that the flow paths all drain to the ocean.

 

Click to Enlarge Image

Click to Enlarge Image

 

 

MAPPING CATCHMENT AND STREAMS

Now that we have an suitably conditioned DEM, we can map the catchment boundary and also create a detailed stream network.

 

In order to map a catchment, we need to first define a catchment outlet.

 

We can manually define a catchment outlet position by selecting "Subcatchments >> Draw Outlet". Draw a line at the location shown in the screenshot below (you may like to "zoom in" to this area using the zoom window or magnifying glass icons on the toolbar to make this a little easier). To do draw the outlet line, left click where you would like the outlet  line to begin, left click again where you would like the outlet to end, and then right click to complete the outlet creation process. Make sure the line is orientated roughly perpendicular to the direction of flow and wide enough to 'catch' the flow that would pass by this position.

 

hmtoggle_plus0        Alternative Outlet Definition Methods

 

Click to Enlarge Image

Click to Enlarge Image

 

Click to Enlarge Image

Click to Enlarge Image

 

Now we have defined an outlet for our catchment (the Tweed River). We will now get CatchmentSIM to map the catchment draining to this outlet by selecting "Subcatchments >> Map All". This is most time consuming algorithm as it needs to maps the path of flow from every pixel within the DEM to see which pixels ultimately drain through the outlet line that we have drawn.

 

Once complete, the catchment should appear similar to that shown below (note the subcatchment boundary colour was changed to make it more visible - this can be done by double-clicking on the 'Subcatchment Boundary' layer in the View Controller on the left of the CatchmentSIM window).

 

Click to Enlarge Image

Click to Enlarge Image

 

Now we will map some streams. First, turn off the existing stream layer by unchecking the "Ex5-Adv-Project26" check box in the View Controller on the left side of the CatchmentSIM window. Now select "Flow Mapping >> Draw Streams". Check the "Restrict to Catchments" check box and enter a Stream Area Threshold (SAT) of "500 hectares". More about the SAT can be found here, but it is essentially the area must be draining to a particular point prior to a stream forming. The lower the SAT, the more detailed your stream network will be. .
 
Ex5-SAT  

 

hmtoggle_plus0        Alternative Stream Definition Methods

 

AUTOMATED CATCHMENT BREAKUP ROUTINE

Often catchments need to be broken down into smaller subcatchments. To assist in breaking up our catchment into subcatchments, CatchmentSIM has three different automated catchment breakup routines. These routines can be accessed via "Subcatchments >> Breakup Subcatchment".  

 

Prior to describing the steps required to run the automated catchment breakup routine, it should be noted that additional outlets can be manually drawn utilising the same process as described above. The automated catchment breakup routine is aimed at breaking up large catchments where the manual specification of outlets would be time consuming.

 

We have multiple options for breaking up the catchment. Further information on the available breakup routines are available here.

 

In this tutorial, we will use the Horton Order Analysis option to breakup the catchment. Do this by selecting the "Horton Order Analysis" radio button and entering a stream order or "2". Click the "Process Subcatchments" button followed by the "Accept New Outlets" button. Select "Yes" when prompted if you would like to refine the subcatchment. CatchmentSIM will analyse the input information and automatically place outlets at the junction of all stream with a Horton number of 2 or greater.
 
Ex5-BreakupCatchment
 
The resulting project should look similar to the following.

 

Click to Enlarge Image

Click to Enlarge Image

 
 

CatchmentSIM will automatically calculate a range of hydrologic properties for each subcatchment, including area, stream lengths, slopes. To view the subcatchment properties select "Subcatchments >> Subcatchment Manager". If you select a row in the subcatchment manager, the corresponding subcatchment will be highlighted in the main CatchmentSIM window.

 

Click to Enlarge Image

Click to Enlarge Image

 

 

EXPORTING SUBCATCHMENT BOUNDARIES, STREAM LAYER OR GRIDS TO OTHER SOFTWARE

CatchmentSIM allows you export all GIS and raster layers so they can be post-processed in other applications, or used in figure/report preparation. These export options is accessed through the "Export >> Export to GIS", or     "Export >> Export Grid Data" respectively.

 

CatchmentSIM also allows the export of GIS data directly to Google Earth, 12d and XPSWMM. This is accessed through "Export >> [12D/Google Earth/XP SWMM]" respectively.

 

In this tutorial, we will export our subcatchments and generated stream layer to Google Earth.

 

To export to Google Earth select "Export >> Google Earth". Select the "Synthetic Stream Network" and "Subcatchment Boudaries" check boxes and ensure the "Launch Google Earth" check box is selected if Google Earth is not already open. Now click "OK".
 
Ex5-Adv-Project32
 
You will be asked to specify the file name and save location for the resulting Google Earth *.kml file. Specify a file name and click "Save". The *.kml file should be automatically loaded into Google Earth. However, if it does not select "File >> Open" in Google Earth and then locate the *.kml file and click the "Open" button.
 

As shown below, the subcatchments and streams are superimposed on the Google Earth background. You can interrogate a subcatchment in Google Earth by simply clicking on the push-pins located at the centroid of the subcatchments, as shown below.

 

Click to Enlarge Image

Click to Enlarge Image

 

 

EXPORTING DATA TO GIS SOFTWARE

We will now export the subcatchment boundaries and generated stream network to MapWindow GIS. MapWindow GIS is a free GIS software available from http://www.mapwindow.org/downloads/

 

To export to MapWindow (or any other GIS application), select "Export >> Export to GIS", select the "Subcatchment Boundaries" and "Synthetic Stream Network" check box and click "OK". Keep the default selected fields and click the "OK" button (you are basically selecting which of the CatchmentSIM calculated attributes you want to include as fields in the GIS layer).
 
Ex5-Adv-Project34
 
Select a file name and save location and click the "Save" button (however, ensure that "ESRI Shape File" is selected from the "Save as Type" drop down box. This can be changed to any of the other supported GIS file types if exporting to a GIS application that does not support ESRI shape files).
 
Now export the DEM by selecting "Export >> Export Grid Data".Select "Arc/Info ASCII Grid Format" from the top drop down box and select the "DEM" Grid type. Then click "OK" and give the grid a suitable file name and save location. Give the DEM file name with a *.asc file extension (e.g., DEM.asc). Click "Save" to export the DEM layer.
 
Ex5-Adv-Project35
 

Open the MapWindow GIS software. This is typically available from the WindowsTM Start menu:   Start >> All Programs >> MapWindow GIS.
 
First we will load the DEM into MapWindow GIS. In MapWindow GIS, click the Ex5-GIS5 button on the MapWindow GIS toolbar and navigate to the DEM grid layer.  Select the DEM grid layer and click "Open". The DEM will be displayed in the main MapWindow GIS window.
 
Now we will add the subcatchment boundary and stream vector layers. Click the Ex5-GIS5 button on the MapWindow GIS toolbar and navigate to the subcatchment boundary and stream layers, select both of the files and click "Open".

 

Click to Enlarge Image

Click to Enlarge Image

 

 

EXPORTING SUBCATCHMENT PARAMETERS TO HYDROLOGIC SOFTWARE

CatchmentSIM includes a Macro language package that will allow automated creation of input files for a range of Hydrologic software packages. For information on supported modelling packages, see the Macro Wizard dialogue and read the macro descriptions.

 

For this tutorial, we will run through the steps to output the required parameters for import into XP-RAFTS.

 

Go to "Export  >> Macro Wizard". Here you will find "CatchmentSIM-Talk Macro Language" (CST) scripts for a range of different software as well as more generic reporting scripts (e.g., there is a script to automate GSDM Probable Maximum Precipitation calculations). Click the "RAFTS-XP" folder in the left pane. A list of RAFTS-XP CST script appears on the right hand pane and scripts are provided for various versions of RAFTS-XP. To export using a particular script, simply double click it and CatchmentSIM will prepare the output. You may be required to input/define some variables depending on the selected script and destination software package. A description of the macro is provided in the bottom pane to help you understand what the script does, help decide if the script is appropriate, and provide an explanation of what the export process is.

 

Ex5-Adv-RAFTS Export

 

 

OPTIONAL EXERCISE

 

CREATE SPATIALLY VARYING RAINFALL GRID

 

hmtoggle_plus0        More Information