Professional Documents
Culture Documents
Exploring Hydrological Analyses Using SAGA GIS
Exploring Hydrological Analyses Using SAGA GIS
Contents
[hide]
1 Purpose of Tutorial
2 Introduction to SAGA GIS
3 Hydrology Definitions
4 Introduction to Project Tutorial
5 Data
6 Methods Conducted in SAGA GIS for Hydrological Analysis
o 6.1 SAGA GIS Basic Setup
o 6.2 Opening SAGA GIS
o 6.3 Importing DEM
o 6.4 Saving Data in SAGA GIS
o 6.5 Projecting the Data Properly to Conduct Analysis
o 6.6 Filling in the Sinks of a DEM
o 6.7 Aspect Maps and Slope Maps
o 6.8 Converting a Vector Polygon to Raster
o 6.9 Creating a Watershed map
o 6.10 Creating a Wetness Index Map
7 Conclusion -- Completed Objectives
8 References
Purpose of Tutorial
This Wiki has been produced for the GEOM 4008 - Advanced Topics in Geographic Information Systems class at
Carleton University for the purposes of exploring and describing the methods of Hydrological Analyses using FOSS4G,
in specific SAGA GIS. The main objective for this wiki tutorial is to help future users of SAGA GIS's hydrological
toolset better understand how the software works and exactly what steps need to be taken in order to achieve the desired
output maps that are both accurate based on the input data and informative for the specific study region and hydrologic
information.
SAGA GIS stands for System for Automated Geoscienific Analyses. It is a Geographic Information System software
program designed to easily and effectively implement spatial algorithms, for real world situations and education. This
geospatial software offers a continuously growing comprehensive set of geoscientific tools/methods. The program has an
accessible graphical user interface with various visualization options to help users easily operate the various analysis
tools. SAGA is capable of running on both Windows and Linux operating systems. SAGA GIS also comes at no cost for
the user because it is a Free Open Source Software for Geospatial analysis (FOSS4G). Being a FOSS4G program allows
a high degree of freedom for the user; it allows the user to run the program for any geoscientific purpose, to modify the
program, to redistribute copies of it, and to improve the program while sharing those improvements with the general
public. More information about this program is available at SAGA GIS's Website.
Hydrology Definitions
Hydrology: Hydrology is the study of the movement, and distribution of water in all parts of the Hydrosphere.
The focus of this project is on Watershed Hydrology which deals with surface runoff within specific watersheds,
based on regional topography (USGS, 2013).
Watershed: A watershed (also known as catchment area or drainage basin) is the area of land where surface
water converges to the same lower elevation base point. In this projectLake Okanagan is the baseline of the
basin for all the surface runoff (USGS, 2013).
Topographic Wetness Index (TWI): The topographic wetness index is a method used to monitor rainfall and
runoff. The analysis describes the aptness of an area to be saturated based on the surrounding area's slope
characteristics and porosity of the ground surface (Olaya & Conrad, 2009).
This project will focus on hydrological analysis of Okanagan Lake which is part of a popular tourist region located in
south central British Columbia, Canada. There will be a focus on Aspect mapping,Slope mapping,Watershed
Delineation mapping and Wetness Index mapping, through the use of SAGA GIS and its built in terrain analysis -
hydrology module tools. This project aims to determine areas of the Okanagan region that contribute water to Okanagan
Lake, and also what areas are susceptible to flooding during high precipitation events based on the slope characteristics
and soil properties of specific land surfaces in the study region. By the end of this tutorial new users to SAGA software
should be able to fully and efficiently conduct watershed and wetness index analyses using a raster DEM of any region in
the world.
Data
In order to conduct this tutorial and appropriately follow the procedures you will first need to download data that is
hydrologically correct and has elevation values for the entire study region. For the hydrological analyses you will
essentially need to download a fully processed digital elevation model (DEM) for the region you are interested in. One
important thing to note when retrieving DEMs is to make sure that if the elevation data for your area of interest is in
separate tiles and requires that they be merged, you must insure that the DEMs were developed at the same resolution,
cell size and during the same project. If these ideas are not followed it is possible that the tiles have cliffs within the
DEM where the merging has occurred. In specific to this tutorial the study area will be the Lake Okanaganregion for
which a processed DEM has been acquired from the Natural Resources Canada Geospatial Data Extraction Tool. This
data extraction website is great for getting good processed elevation data for much of Canada and also contains other data
files for many projects.
Table 1. Data Files Used and Respective Data Sources for Okanagan Lake Hydrological Analysis
Vector
Okanagan Lake Geogratis Layer: Hydrography / Producer: Natural Resources Canada
Polygon
Digital Elevation Model Geogratis Layer: Canadian Digital Elevation Model Data / Producer:
Raster
(DEM) Natural Resources Canada
Before you start setting up SAGA GIS for use it is recommended that you acquire the data which you plan to use for your
project; be aware of where your data is located in a folder and make sure all of the data you are using is located in that
folder.
To run your hydrological analyses ensure that SAGA GIS is properly installed onto your computer and functional. If you
do not have SAGA GIS you can download it at SAGA GIS homepage.
If installed and functional, one simply has to locate and click the SAGA GIS icon this will open the initial
SAGA GIS window.
Once SAGA GIS has been opened your user interface will be shown as below.
Figure 1. Screenshot of what the SAGA GIS graphical user interface looks like at start up
Importing DEM
This section will instruct you how to appropriately bring in a processed DEM into SAGA GIS so that you can effectively
conduct a hydrological analysis.
In the SAGA GIS graphical user interface (gui) you will first need to navigate to the Modules pull down menu
located
that the imported file will show up in the data tab of the workspace, however
in order to visually see your data you need to double click on the file name which will open a new window
entitled Add layer to selected map, then select new and click OK.
Now the DEM is been completely and accurately imported into SAGA GIS and will be displayed like Figure 2.
Figure 2. Digital Elevation Model for Lake Okanagan, British Columbia, Canada (Source: NRCan, 2013)
In order for a user to save imported data or data that is generated through the use of an analysis tool, they must save each
raster file individually. This is because the files do not save automatically anywhere on the computer and saving all your
work as one SAGA project (.sprj) does not not actually save the individual raster files; and if the files are not saved they
cannot be re-manipulated of processed if the document is closed or crashes. To save raster files properly in SAGA GIS:
Navigate to the raster file from the files list in the Data tab of the workspace.
Now right click the file name and scroll down to Save As....
Clicking save as will open a new window that allows you to specific where you want the file to be saved, what
you want to name it and what format it should be in (Note: the .sgrd extension is the native grid format for
SAGA GIS and generally works best).
Once all the information has been specified in this Save Grid window, click Save. Your raster data has now
been successfully saved.
In SAGA GIS you will have to begin your analyses by first projecting your DEM file into a Universal Transverse
Mercator (UTM) projection system because SAGA works best of this coordinate reference system in regard to hydrology
tools. If your DEM was already in a UTM system and in the correct zone for the study region, you can skip this step,
otherwise you need to go through the following steps to convert the original projection of the DEM file into a UTM zone
system that SAGA can work in.
Look up your specific proj.4 code online for your area of interest at spatialreference.org. Note: Make sure that
you find a code for your DEM that is in NAD83(CSRS) UTM and also ensure that you are projecting it into the
correct UTM zone for your study region.
Once you have the proj.4 code, you back into SAGA GIS, and open the Modules tab in the workspace window.
Navigate to the toolset titled Projection - Proj.4 and expand it by clicking the small plus sign button.
Next, you need to select your DEM file using the drop down menu of the row titled source.
Inputting the DEM file into the dialogue box will automatically change the input of the first row called Source
Projection Parameters to the appropriate projection.
Now in the Target Parameters, type in the Proj.4 projection code retrieved from the spatial reference website.
Leave the Create X/Y Grids box unchecked and proceed to the next row.
In the Interpolation file select any surface interpolation you prefer from the drop down list (Natural Neighbor is
used for this tutorial and it is generally a good idea depending on your project).
In the last field of the dialogue box use the drop down menu once again and select user defined.
The next step in the projection process is to click Okay.
This will once again pop-up a new window that allows you to manipulate the user defined grid for your
projection.
In this user window the first four rows will already have correct inputs based on your Target Parameters, but
you will need to input a defined parameters into the cellsize field.
Please make sure that the appropriate cellsize is defined, otherwise your newly projected DEM file won't work
properly for the hydrological analysis. Your cellsize input needs to be the same as the cellsize on the original
DEM. For the this tutorial on Lake Okanagan watershed delineation, the cellsize was set to 30.
In the tool window you will need to input the EPSG code for the projection that was applied to the DEM using
the Proj.4 projection tool. This EPSG code can also be found at the spatial reference website.
Once the EPSG code has been defined the Proj4 Parameters field will change automatically based on the
projection code.
Next, go down to the Grids field under the Data Objects section and click the empty column to display the
browse button .
Clicking the browse button will take you to an internal pop-up window in which you will need to select your
DEM file that you projected already and transfer it over to the right column which should be empty.
Click Okay.
Click Okay on the main dialogue box of the Set Coordinate Reference System tool as well.
Finally your projection application of your DEM is complete and your raster file is ready for hydrological
analyses.
It is absolutely vital for people conducting hydrological analyses to fill in the sinks contained within digital elevation
models. By filling in the these sink features you are essentially limiting the number of geometric artefacts, errors from
specular reflection of water, and other errors in the elevation model caused by a variety of aspects. To fill in the sinks go
through the following steps:
Once you have opened the Fill Sinks (Wang Lui) tab, you select your grid system (under which your DEM data
is saved) through the drop down menu beside the row entitled Grid System.
After selecting your grid system, you go to the row entitled DEM and select your DEM file through the drop
down menu.
Once you have done this, make sure the fields Filled DEM,Flow Directions, and Watershed Basins through
their drop down menus have [create] selected.
Error creating thumbnail: convert: unable to
open image
`/var/lib/mediawiki/images/5/5b/2_wanglui.p
ng': @ error/blob.c/OpenBlob/2587.
convert: unable to open file
`/var/lib/mediawiki/images/5/5b/2_wanglui.p
ng' @ error/png.c/ReadPNGImage/3238.
convert: missing an image filename
`/var/lib/mediawiki/images/thumb/5/5b/2_wa
nglui.png/250px-2_wanglui.png' @
error/convert.c/ConvertImageCommand/3011
.
The next step is to click Okay, since you generally don't need to edit the optional Minimum Slope row.
After all of these steps you will have a new DEM file in which all the sinks are filled, thereby making your
DEM a hydrologically correct one; and this is shown in Figure 3 for the Lake Okanagan DEM.
Figure 3. Digital Elevation Model for Lake Okanagan, British Columbia, Canada after all sinks had been filled in
(Projection: NAD83(CSRS) UTM Zone 10N).
Aspect and slopes maps were created in this project tutorial because these maps are a great way to visualize the DEM
information and allow you see what the topography looks like in the area as if you were flying over the region in an
aircraft. To conduct these analyses go through the following procedures:
Go to the workspace window of the SAGA GIS GUI and scroll down to the toolset titled Terrain Analysis -
Morphometry
After completing these steps click Okay at the top right of the window.
This will create your maps.
Figure 5. Slope map of the Lake Okanagan, British Columbia, Canada study region.
This section of the tutorial will run through the procedures that are required to take a file that is in vector polygon format
and convert it into raster format. This step is very important since it is required for one of the inputs for the next part of
the hydrological analysis, where we evaluate watershed delineation. When creating a watershed it is required that a target
area be specified based on which the watershed will be built, and this area needs to be a hydrologic feature like a Lake or
River. Due to the fact that hydrologic features are generally not found in raster format it is important to follow the
procedures of this section to convert the polygon into raster for a more accurate SAGA GIS analysis.
This section will run through the actual hydrological analysis of generating watershed maps for a region. In this specific
tutorial the Okanagan Lake watershed is generated only, but the procedures would apply to any study region. To make a
watershed map:
Go to the workspace window's Modules Tab and scroll down to Terrain Analysis - Hydrology and expand it.
Scroll down to Upslope Area and open the tool by double clicking.
Error creating thumbnail: convert: unable to
open image
`/var/lib/mediawiki/images/8/8d/1upslopearea
.png': @ error/blob.c/OpenBlob/2587.
convert: unable to open file
`/var/lib/mediawiki/images/8/8d/1upslopearea
.png' @ error/png.c/ReadPNGImage/3238.
convert: missing an image filename
`/var/lib/mediawiki/images/thumb/8/8d/1upsl
opearea.png/250px-1upslopearea.png' @
error/convert.c/ConvertImageCommand/3011
.
Select your grid system through the drop down menu on the right side of the window on the Grid System row .
Go down to the row titled Target Area and select your area of interest, which is the converted vector
hydrologic feature on which the watershed will be based. In this tutorial the Target Area is the Okanagan Lake
boundary raster file.
Go down to the Elevation row and select your Filled DEM data from the drop down menu on the right side of
the window.
Ensure that the row titled Sink Routes has [not set] selected through the drop down menu. This field is
specified as [not set] because the filled DEM already accounts for the sink routes of the data.
Go down to the row titled Upslope Area and make sure [create] is selected in the drop down menu. This is the
field that tells the algorithm to output the the watershed map which is also known as an upslope area map.
Go under Options and to the row titled Method and make sure Deterministic 8 is selected from the drop down
menu. Note: The Deterministic 8 (D8) algorithm is chosen in this project because it is found to be the best
option when generating watershed maps. This D8 algorithm assumes that each cell of the Filled DEM has
unidirectional water flow, whereas the other algorithms assume that one cell can have water flowing in multiple
directions. To make a more accurate and understandable watershed delineation map the D8 algorithm is best.
Now the next field is titled Convergence and for this row it is advised that you please ignore the field and leave
the default value. It is important to leave the field untouched because this convergence factor only applies it you
are using the multiple flow direction algorithm but because we have use the D8 algorithm this field will not
apply to the output.
After you have done all of the steps click Okay at the top right of the window.
This creates your Watershed Map.
Now as seen in Figure 6 an excellent watershed delineation map has been generated for the study region, however you
can also see that the watershed map is projected onto just a white background causing the information to be ambiguous
and provide no geospatial meaning. In order for hydrologists and/or researchers in the real world to use this map
successfully you would definitely need to drape this map over an other map (like a DEM, Basemap of the study region or
aspect map) that provides geospatial context to the information so that researchers can actually see which areas of the
study region contribute water flow into Okanagan Lake. In this project the watershed was given geospatial context by
draping it over the aspect map because this map clearly depicts the landscape of the study region and help pinpoint areas
that contribute water flow to the target area.
Figure 7. Watershed of Lake Okanagan, British Columbia, Canada shown draped over the aspect map in order to make
the data more meaningful.
In Figure 7 you can see the watershed map draped over the aspect map. To drape the watershed over other maps you first
need to convert the raster watershed file into a vector polygon and to do this:
You will first need to open the tool called Vectorising Grid Classes by navigating through the menus of the
main toolbar using the following steps: Modules | Shapes | Grid | Vectorization | Vectorising Grid Classes.
The above steps describe the steps required to convert a raster to vector polygon so that the watershed map can be draped
over the aspect map. Once the watershed map has been vectorised further steps can be taken to drape it over other maps
for geospatial context. To do this:
Go to the Data tab of the workspace window and find the upslope area vector polygon file.
Click on the name of the file to select it and when it is highlighted go to the properties window which located
on the right hand side of the screen.
In the properties window ensure that you are in the Settings and then navigate to up to the field titled
Transparency [%].
In this field you can input any value you prefer based on how transparent you would like your watershed map to
look when it is displayed over the aspect map. For the Okanagan Lake study area a transparency of 40 of
selected.
Once the transparency percentage has been specified click Apply and then Save at the bottom of the properties
window.
Now go back to the Data tab of the workspace window and right click on the watershed vector file.
Select the Add layer to Map option.
In the Map Selection Window that pops up select the Upslope area map.
Finally click OK and now your Watershed map is fully completed and has great geospatial information along
with its hydrological information just like Figure 7.
This section will run through the analysis of defining a region's wetness, which describes how susceptible specific areas
in a study region are to becoming saturated if high inputs of precipitation occur in a relatively short amount of time. To
run a wetness index analysis conduct the following:
In the workspace window under the Modules tab scroll down to Terrain Analysis - Hydrology' and expand it
using the small plus sign button.
Scroll down to SAGA Wetness Index tool and double click it to open the dialogue box to the analysis tool
dialogue box.
Error creating thumbnail: convert: unable to
open image
`/var/lib/mediawiki/images/2/27/1creatingwat
ershed.png': @ error/blob.c/OpenBlob/2587.
convert: unable to open file
`/var/lib/mediawiki/images/2/27/1creatingwat
ershed.png' @
error/png.c/ReadPNGImage/3238.
convert: missing an image filename
`/var/lib/mediawiki/images/thumb/2/27/1creat
ingwatershed.png/250px-
1creatingwatershed.png' @
error/convert.c/ConvertImageCommand/3011
.
Select your grid system through the drop down menu on the right side of the window on the Grid System row .
Go down to the Elevation row and select your Filled DEM data from the drop down menu in the empty column
beside the row title.
Ensure Catchment area, Catchment slope, Modified catchment area and Wetness index all have [create] in
each of the row's drop down menu of the window.
In the row titled t make sure the row value is set to ten (10), since that is the default for the tool and it causes the
wetness index values to being floating point numbers with a precision of ten points.
After you have done this click Okay at the top right of the window.
This creates your Wetness Index Map.