2020 Step by Step Installation Model Set Up
2020 Step by Step Installation Model Set Up
Step-by-Step tutorial
The hydrological model for Robit Watershed
1
1
Qianwen He, Nov. 2020
Task Description
Follow the step by step tutorial to set up a hydrological model with the
given dataset. After the practice, you need to understand:
• What are the required input data?
• What is the modeling procedure?
• What results can be obtained from the model?
2
Content
• Software installation
• Settings
3
Software Installation
• Prerequisite
o Microsoft Windows XP to 10(No Mac OS)
o Microsoft Access (the interface to use Access database)
Please download from https://www.b-tu.de/it-
services/basisdienste/software/lizenzvertraege/microsoft-software/ees-campus-vertrag
(Download Keys(separate Datei) und Software)
Microsoft .NET Framework 3.5
• Software to install
o QGIS
o SWATEditor
o QSWAT
4
Software Installation
• Installation:
o Step1: go to:
http://swat.tamu.edu/softwa
re/qswat/
5
Settings
• Time and Date format modification
Control panel Clock, Language and Region
Change data, time or number formats
6
Install SWAT in QGIS
• Step1: Launch QGIS Desktop 3.x
• Step2: go to “Manage and Install Plugins” and find “QSWAT” and “install plugin”
7
References
• http://swat.tamu.edu/software/qswat/
o QSWAT3 user manual
8
SWAT Modelling Overview
1. Watershed delineation (dem)
o Define the region of the basin/catchment
o Delineate the basin in order to obtain the subbasins/watersheds
o Define the location of the outlet, point source,…
9
Input Data Overview
Example Data Set: Robit Watershed, Lake Tana Basin, Ethiopia
https://drive.google.com/drive/folders/1FFz2-lSUtgW9kDh-zaW2vMBWvbsBQL7q?usp=sharing
Remark
Climeate input, with measuring sites and time series
Location of the outlet
Observed discharge at basin outlet (m3/s)
Stream .shp
Landuse look up table, with corresponding SWAT Landuse Code
11
SWAT Project Setup
• Step 1. Create a folder first (we refer to it later as: YourHomeFolder), this is the folder where you will
save your project
• Create a project in “YourHomeFolder”, name it and save it (we refer to it as : YourProjectFolder)
YourHomeFolder
YourProjectFolder
13
SWAT Project Setup
• Step 2. Copy the input dataset to “YourHomeFolder”
o The input dataset were prepared and should be downloaded (page 10)
o Copy folder ”ExampleDataset” to YourHomeFolder(created in step1)
14
SWAT Project Setup
• Step 3. Modify tables in the database
o After creating the project, two database(.mdb) were generated in
“YourProjectFolder”
• YourProjectName.mdb (e.g. prj1.mdb)
This is the database to store the data created
during your modelling process
• QSWATRef2012.mdb
This is the database stored the default parameters
sets that SWAT predefined
15
SWAT Project Setup
• Step 3. Modify tables in the database
o In QSWATRef2012.mdb, table “usersoil” and “WGEN_user” need to be
replaced with external data
• Launch QSWATRef2012.mdb, tables are listed on the left
17
Next page for more importing 17
details
1 2 3
4 5 6
• Table “WGEN_user” should be deleted, then import “WGEN_Robit.xlsx” with the same procedure and name it as
“WGEN_user” 18
SWAT Model Setup
• Step 4. Watershed delineation
19
SWAT Model Setup
• Step 4. Watershed delineation
o launch the project created at step1
o “Delineate Watershed”
20
SWAT Model Setup
• Step 4. Watershed delineation
o Import DEM: “YourHomeFolder\ExampleDataset\DEM\srtm_30m\hdr.adf”
21
SWAT Model Setup
• Step 4. Watershed delineation
o Burn in existing stream network
“\YourHomeFolder\ExampleDataset\RobitStreams\robReach.shp”
22
SWAT Model Setup
• Step 4. Watershed delineation
o Create streams
2 1
3
24
SWAT Model Setup
• Step 4. Watershed delineation
o Create watershed
25
SWAT Model Setup
• Step 5. HRU analysis
o Import landuse and soil data, and generate the HRUs
26
SWAT Model Setup
• Step 5. HRU analysis
o Import landuse map and soil map
“\YourHomeFolder\ExampleDataset\Landuse\roblandusenew\hdr.adf”
o Import soil map
“\YourHomeFolder\ExampleDataset\Soil\mowr_soil90\hdr.adf”
27
SWAT Model Setup
• Step 5. HRU analysis
o Import landuse and soil lookup table
• Landuse table Use csv file
• Soil table Use csv file
28
SWAT Model Setup
• Step 5. HRU analysis
o landuse and soil lookup table
• The lookup tables have the attribute that can be linked to tables stored in QSWATRef2012.mdb. Those
tables contain parameters and the model will use the parameters for simulation
• The usersoil table has been replaced with the usersoil.xlsx in ExampleDataset. usersoil.xlsx contains the
soil property of the Robit watershed and the original usersoil table did not have those information
parameters
Robit_landuse.xlsx
Insert “10”
“Create HRUs”
Hint: If “Set bands for slope(%)” panel is grey and slope value 10 cannot
be inserted, please cancel this window and go back to “Delineate
Watershed” window again, click “OK” at the bottom, and redo “Step5. 30
HRU analysis”
SWAT Model Setup
• Step 5. HRU analysis
o HRUs are the combination of a certain landuse, soil and slope, when the three of them are overlayed
31
SWAT Model Setup
• Step 5. HRU analysis
o Read reports
• Click “Select report to view”
Elevation
Landuse and soil
HRUs
32
SWAT Model Setup
• Step 6. Edit SWAT input
o Input weather data and generate input tables
• “Edit Inputs and Run SWAT”
• “Connect to Database”
33
SWAT Model Setup Weather data list:
“\YourHomeFolder\ExampleDataset\ClimateRobit\”
• Step 6. Edit SWAT input
o The location of weather station
o “Write Input Tables” “weather stations” • pcpRobStation.txt
• rhumRobStation.txt
• windRobStation.txt
• tmpRobstations.txt
o Time series of the measured weather data
• robpcp.txt
• robrhum.txt
• robwind.txt
• robsol.txxt
34
SWAT Model Setup
• Step 6. Edit SWAT input
o “Write Input Tables” “weather stations”
35
SWAT Model Setup
• Step 6. Edit SWAT input
o “Write Input Tables” “weather stations”
• Insert “location of weather station” file(.txt) accordingly
36
SWAT Model Setup
• Step 6. Edit SWAT input
o “Write Input Tables” “Write SWAT Input Tables”
• All the tables needed for the simulated will be created in the yourProjectName.mdb
37
SWAT Model Run
• Step 7. Run SWAT
o “SWAT simulation” “Run SWAT”
• Period of simulation can be set for any period
within the time range of the input weather
data
• NYSKIP should be set to 2~5 years as a warm
up period for the model
• First ”Setup SWAT run” and then “Run SWAT”
39
SWAT Result Visualization
• Static data
o A single summary value
o A .shp file is created
• Animation
o Visualize the time series
with the spatial variation
• Plot
o Compare with observed data
o Compare between channels
40
SWAT Result Visualization
• Static data
• Example: Annual mean ET (evapotranspiration) at each subbasin
41
SWAT Result Visualization
• Animation
• Example: Annual mean ET (evapotranspiration) at each subbasin
42
SWAT Result Visualization
• Compare with observed discharge
“\YourHomeFolder\ExampleDataset\Observed\observedFLOW.csv”
43
SWAT Result Visualization
• Compare with observed discharge
44
SWAT Result Database
“\YourHomeFolder\YourProjectFolder\Scenarios\YourSimulationName\TablesOut\SWATOutput.mdb”
45
SWAT Result Database
“\YourHomeFolder\YourProjectFolder\Scenarios\YourSimulationName\TablesOut\SWATOutput.mdb”
46
SWAT Application
• Fertilizer manufactory at sub basin 6
Daily discharge: 2400m3/day
Daily ammonia nitrogen release: 0.72t/day
1. Step 3 “Edit Inputs and Run SWAT”
2. “SWAT Editor” window “Connect to Database”
3. “Edit SWAT Input” “Point Source Discharges”
4. “Select Point Source” 6
5. Modify the point source Flow and NH3
6. “Save Edits” and “Exit”
7. “Edit SWAT Input” again Re-write SWAT Input
files
8. Select “point source/inlet” Write Files then
“Cancel” to exit the window
9. “SWAT Simulation” “Run SWAT” check
“Print Water Quality Output”
10. Read SWAT output and save the simulation
11. Data visualization: have a look of variables
“NH4_OUTkg” and “TOT_kg” in rch
47