Personal tools

Difference between revisions of "Run SWAT Model"

From MohidWiki

Jump to: navigation, search
(Step 1 Delineate Watershed)
 
(31 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
In the next sections, are described the needed steps to be taken in order to perform a SWAT simulation whether using ArcView or MapWindow software.  
 
In the next sections, are described the needed steps to be taken in order to perform a SWAT simulation whether using ArcView or MapWindow software.  
==For ArcView users==
 
===Create the SWAT Project===
 
#Run ArcView
 
#If a Window appears "Welcome to ArcView GIS" asking to create a new view, click "Cancel"
 
#Go to menu "File"->"Extensions"
 
#Click on the check box "AVSWATX extendable" and '''NEVER click the check box "Make Default"'''
 
#[[Image:Swat_ArcViewExtension.png|425px|thumb|center|ArcView SWAT extension]]
 
#Go to Explorer and create a directory for the project (e.g. Aplica\AVSWAT2005\Portugal\Guadiana\BaciaExemplo\Cenario_teste)
 
#A new Window appears - SWAT interface. Click on the box "New Project" to create a new project.
 
#Choose the name for the project in the directory you created (e.g. Bacia_crsr)
 
#Go back to Explorer and to your project directory (the just created by the project) and copy the "data" file from \\Datacenter\Albufeiras_Eutrofizacao\ComoFazer\1.PreparaInputs\3.SWAT\ExemploAplicacao\data
 
#A window appears "SWAT - ArcView: DataSets". Choose the data directory just created and named "data".
 
  
===Create the project options text file===
+
For the ArcView Tutorial see [[Run_SWAT_Model_-_ArcView_Interface | SWAT in ArcView]]
Copy from \\Datacenter\Albufeiras_Eutrofizacao\ComoFazer\1.PreparaInputs\3.SWAT\ExemploAplicacao\SimulationProperties_xxx.txt the text file where you will write all the options that you make in this interface. This file is not used by the model, it is only a memo and will be very useful when you have a lot of old simulations and have to understand what options have you chosen and difference betwen them.
 
  
Place the file in the ..\watershed\text folder that meanwhile was created by SWAT.
+
For the MapWindow Tutorial see [[Run_SWAT_Model_-_MapWindow_Interface | SWAT in MapWindow ]]
  
===Watershed Delineation===
 
 
A window appears "Watershed delineation".
 
 
[[Image:Swat_WatershedDelin.png|425px|thumb|center|ArcView SWAT watershed delineation]]
 
 
====In Dem Setup====
 
'''Remind to write down relevant information to your memo file. Follow the example file that you copied previously (project options text file)'''
 
 
#Click the folder icon to open the DEM (digital elevation model), choose to open from disk and select the DEM in the folder data\dem.
 
#If you do not have yet the DEM go to [[Get_NASA_DEM_for_SWAT|Get NASA DEM for SWAT]]
 
#Click Properties button
 
#Click Projection button
 
#Message "Undefined Projection". Click "OK"
 
#Message "Do you want to modify your projection?". Click "YES"
 
#Click "Custom Projection" button
 
#"Projection Properties" window. Select radio buttom "Custom"
 
#On "Projection" choose "Transverse Mercator"
 
#On "Spheroid" choose "Internation 1909"
 
#Write the coordinate settings in the next picture so that the final it should look like this:
 
#[[Image:Swat_Projection.png|425px|thumb|center|ArcView SWAT projection]]
 
#Click "OK" twice.
 
#Back to "Dem Setup" click "Apply" button
 
#Message "Do you want the edge cells to flow inside?" Choose "No"
 
#Message "End of processing". Click "OK"
 
 
====In Stream Definition====
 
'''Remind to write down relevant information to your memo file. Follow the example file that you copied previously (project options text file)'''
 
 
#Choose the treshold area for the consideration of a stream line.  The value depends on the number of subsbasins generated. As you only will know the exact number of subbasins after completing the Watershed Delineation step, as a first value put in the recommended. Then, in the end of the Watershed Delineation step you should have around 50-80 subbasins; if you have less you shoul decrease the treshold area, if you have more, you should increase.
 
#Click "Apply"
 
#When the process is finished, streams will show up in the background
 
 
====Outlet and Inlet Definition====
 
'''Remind to write down relevant information to your memo file. Follow the example file that you copied previously (project options text file)'''
 
 
Outlets are places where the model will produce outputs (flow, concentrations), so you should have an outlet in the reservoir wall and in the river monitoring points from INAG (to validate model results)
 
#If there is not already an outlet where you whish to have one, add the outlets leaving the radio button on "Outlet" and clicking on "Add". Choose where to add the point.
 
Hint: Use the reservoir shape to know where to locate the downstream watershed outlet (at the reservoir wall so that all drainage area is considered).
 
#After adding all needed outlets, select the outlet which is the watershed outlet (downstream outlet), clicking first on "Select button" and then pointing at the outlet (or selecting an area where that is the only outlet inside).
 
#Click "yes" to confirm that you selected one outlet.
 
#The model generates the watershed and subbasins, then click "Apply" so the model computes the parameters for each subbasin generated.
 
#Message window saying that the computation was completed. Click "OK"
 
 
===Land Use and Soil Definition===
 
#Add to the ArcView the shapes with the soil data (in data/soil) and land use (in data/uso_solo)
 
#Go to Menu "AVSWAT" -> "Land Use and Soil Definition". Note that the previous step (watershed delineation) is in this menu and that the next step is unavailable yet.
 
 
====In "Land Use Data Layer"====
 
#Click the folder icon to load the land use shape.
 
#Choose option: Select shape from watershed view
 
#Choose option: Format: shape
 
#Select shape: Corine2000
 
#Select the field with the land use code: code_00
 
#Message saying that shape was sucessfully clipped and to reclassify. Click "OK"
 
#Now we need to translate the land use codes to a land use that SWAT understands. That is done by a table with correspondences. Click "Lookup Table Grid..." button.
 
#Select: "User Table"
 
#Select: dbf file
 
#Browse for the file lucnew_wwater.dbf in data/uso_solo
 
#Now land uses in swat language appear. Check that all the values in the table have an "Land Use SWAT" code.
 
#Click Reclassify
 
 
 
====In "Soil Data Layer"====
 
 
First you need to copy from SAMSUNG the file "usersoil.dbf" from "C:\AVSWATX\AVSWATDB" to your local folder "C:\AVSWATX\AVSWATDB". This file has the soil names (and hydraulic parameters associated) that you will have in the soil map.
 
 
#Load the soil map to the view: Click on the main menu icon "load theme" then select the folder and file ''data/solo/solo_eu_portugal.shp''. This will load the theme in the theme view in ArcView.
 
#Then, in the "Avswatx"--> "Land Use and Soil Definition" --> "Soil Data Layer" panel, click the folder icon to load the soil shape.
 
#Choose option: Select shape from watershed view
 
#Choose option: Format: shape
 
#Select shape: Solo_eu_Portugal
 
#Select the field with the land use code: sltxcl
 
#Message saying that shape was sucessfully clipped and to reclassify. Click "OK"
 
#Now we need to translate the land use codes to a land use that SWAT understands. That is done by a table with correspondences. Click "Lookup Table Grid..." button.
 
#Select: dbf file
 
#Browse for the file soil_crsr.dbf in data/solo
 
#Now soil types in swat language appear. Check that all the values in the table have an "Name" code.
 
#Click Reclassify
 
 
 
_____
 
 
#Click "Overlay" where model takes out landuse and soil infor for each subbasin.
 
#Message saying that process is complete. Click "OK".
 
#This is how it should look like the window after all done:
 
[[Image:Swat_LandUseSoil.png|650px|thumb|center|ArcView SWAT Land Use and Soil definition]]
 
 
===Definition of HRU===
 
HRU (Hidrological response unit) is a uniform area with the same land use and soil type. It is over these that the model will make the hydraulic and WQ computations. One sub-basin may have one HRU (and the sub-basin will inherit the major land use and major soil type of the sub-basin) which can be a coarser aproximation, or can have multiple HRU's. HRU's do not have georeferenced information, they area areas inside a subbasin with one land use and one soil type.
 
 
This is a text phase where you will try to see if one HRU per sub-basin is enough to describe your complete watershed land use and soil distibutions; if not increase the number of HRU.
 
 
#First try to have only one HRU per sub-basin (select dominant land use and click ok)
 
#Click "OK" twice to proceed
 
#Check on menu "Reports"->"Show List" the original land use and soil type area percentages inside your watershed in "SWAT model Land Use and Soil Distribution" text. Compare these values with the ones generated with your HRU definition (in this case one HRU to one sub-basin in "SWAT model Land Use and Soil Distribution (after treshold application)". The difference between percentages of land use and/or soil shoul not be as higher than 2-3%. If higher, you need to repeat the HRU definition process to have more HRU's.
 
#If needing more HRU, go back to menu "Window"->"Watershed" and then in menu "AVSWAT"->"HRU distribution" select "Multiple Hydrologic Response Units".
 
#Two ruler appears one for land use and other to soil. Usullay only land use has high variability comparing to sub-basin sizes (see shapes created by the model) so we only need to move the land use ruler. Try 20% and the click "OK"
 
#Click "OK" twice to proceed
 
#Do the same checking again comparing percentages from land use and soil maps with your model definition. If still the difference is not inside 2-3% have to get more HRU and repeat process.
 
 
'''What means 20% and 10% Land Use tresholds for HRU definition? It means that SWAT will produce an HRU if inside the sub-basin there is one land use area bigger than 20% the total sub-basin area, meaning that ignores land uses that have areas less than that percentage. The same rational for 10%.'''
 
 
===Weather and write default parameters===
 
# You will need to [[Get_Rain_For_SWAT|Get Rain For SWAT]]
 
# Create a new (new excel file in office 2003 then save to .dbf) file based on ".\data\weather\LocRain.dbf" and leave the same file name. This file points to the precipitation stations, so substitute (or add if more stations) coordinates and station names. Remind to use a short name for station names and it has to be the same names as the dbf's where precipitation were written in the previous step. Station coordinates may be obtained in SNIRH -->"meteorologia"-->"dados base"-->"Caracteristicas das estações".
 
# Copy from SAMSUNG file "userwgn.dbf" from "C:\AVSWATX\AVSWATDB" to your local folder "C:\AVSWATX\AVSWATDB".
 
# Edit the file in ".\data\weather\LocWgn.dbf" with the name and coordinates of the station(s) near to your watershed.
 
 
This file points to weather stations that will create climate variables (wind, humidity, etc..) so you should check which is closer to your watershed using the weather stations shapefile in \\datacenter\Albufeiras_Eutrofizacao\Produtos\ProjectosGIS\ShapesBase\EM_WGNSWAT_PT. Station name is in this shape file and coordinates in the file "C:\AVSWATX\AVSWATDB\userwgn.dbf" searching for station name. Please remind to use a station with '''no data fails''' in file userwgn.dbf. <webimage>http://content.screencast.com/users/GRiflet/folders/Jing/media/49b8fe23-0cf1-49ef-8a72-2bb2b93fa851/2009-11-03_1521.png</webimage>
 
# Go to menu "AVSWAT"->"SWAT View" then menu "Input"->"Weather Stations"
 
# "Rainfall data" --> "Raingages" --> "Locations Table" [browse] and choose file ".\data\weather\LocRain.dbf"
 
# "Weather simulation data" --> "Custom database" --> "Locations table" [browse] and choose file ".\data\weather\LocWgn.dbf"
 
# Click "Ok".
 
# Substitute file ".\watershed\tables\PCP.dbf" all values -99. by adequate values of precipitation (they should not appear as noted in the first step).
 
# "input"-->"build all default"-->"yes"-->"continue".
 
# First window "no"
 
# Second window "no"
 
# Third window "yes"
 
# Ok
 
 
===Run SWAT in the Interface===
 
# "Simulation"-->"RunSwat"
 
# Click on "Bsn" button...<webimage>http://content.screencast.com/users/GRiflet/folders/Jing/media/ce39e5c4-2fd2-4cd3-8a1e-50f0790e9069/2009-11-03_1303.png</webimage>
 
# Change the "Potential ET Method" to "Pennman-Monteith method".
 
# "Setup SWAT Run"
 
# "Run SWAT". <webimage>http://content.screencast.com/users/GRiflet/folders/Jing/media/0dd9d060-b488-4f9b-acbb-7a8d70e3e04b/2009-11-03_1543.png</webimage> <webimage>http://content.screencast.com/users/GRiflet/folders/Jing/media/1193a02d-4b8f-4e06-8e7d-a27ab5bb9d16/2009-11-03_1554.png</webimage>
 
#Everything should run fine. Most errors should occur from bad formatting and/or bad data in the dbf input data files. The precipitation file and the LocWgn and LocRain files.
 
# You may not wait until the end of SWAT simulation and close the run window. This is because SWAT run in its original form creates giant and confuse outputs so there has been created a MOHID version of SWAT. This version runs the original code of SWAT bur produces output in MOHID language (e.g. timeseries that can be read in Timeserie Editor or be used as discharges in MOHID). See next step to know what to do to have your outputs in MOHID way.
 
 
 
====Debugging techniques====
 
You're trying to the SWAT but he refuses to run and yields an error but with no further information. What should you do?
 
 
You should run the SWAT from the command line. To do so, copy the swat2003 executable and all the dll files from "C:\AVSWATX\AvSwatPr" to "\scenarios\default\txtinout". Then create, from a dos command-line window, type
 
> cd "\scenarios\default\txtinout"
 
> swat2003
 
 
Then you can see the fortran error that is generating the error.
 
 
<webimage>http://content.screencast.com/users/GRiflet/folders/Jing/media/5c54ae1b-6463-461b-99e1-a797b6192759/2009-11-03_1329.png</webimage>
 
 
==For MapWindow users==
 
 
===File pre-processing===
 
 
Before running the MWSWAT it is suggested to perform some modifications in the MWSwat database (mwswat.mdb) located in the subfolder ..\Plugins\MWSWAT of the Mapwindow installation directory.
 
 
===Create the SWAT Project===
 
#Run Mapwindow
 
#Go to menu "Plug-ins" and select at least the following ones:
 
#* Watershed Delineation
 
#* MWSWAT
 
#* Shapefile Editor
 
#When click on the MWSWAT a new window will arise asking if its a new or existing project click on new and browse for a location for this project file.
 
 
===Step 1 Delineate Watershed===
 
 
#After it has been created the project in the main steps will appear a button with the Step 1 that consists in delineate watershed.[[Image:MWSWAT_Step1.gif|650px|thumb|center|MPSWAT initial menu]]
 
#It will open a window that would ask for a Base DEM to be processed. In our case it would be used the digital terrain elevation with the correct projection.[[Image:MWSWAT_Step1.1_Delineate.gif|650px|thumb|center|MPSWAT Delineate Watershed]]
 
#Once selected a new open divided vertically in three section appears, in our case we would only modify the "Network delineation by Threshold method, where the units selected would be sq. km. and the cell size of 0.5. In the below section would be chosen the shapefile with the outlet of the watershed that we want to calculate. After that it can be run independently each section or run all in once pressing the button "run all".[[Image:MWSWAT_Step1.2_AutomaticWatersheDelineation.gif|650px|thumb|center|MPSWAT Automatic Watershed Delineation menu]]
 
#As a result it will be obtained the main subbasins and the main water courses that lead to the outlet point.[[Image:MWSWAT_Step1.3_ResultC.gif|1030px|thumb|center|Resulting window from after Step 1 completion]]
 
 
===Step 2 Create HRUs===
 
 
#If the Step 1 have been completed correctly, the Step 2 button will turn up with the message "Create HRUs".[[Image:MWSWAT_Step2.1_CreateHRUs.gif|650px|thumb|center|MPSWAT menu after Step 1 completed]]
 
#Once pressed it would open a new window, where has to be selected our Landuses and soils maps and tables. The Landuse and soil map should have been prepared earlier and the tables loaded in the MWSWAT database. Then press the "Read" button.[[Image:MWSWAT_Step2.2_MapsandTables.gif|719px|thumb|center|Create HRUs menu with the chosen maps and tables]]
 
#Once the grids are read, in our case we would select "Multiple HRUs" from the droping single/multiple HRU menu. It would also be selected the percentage option in the menu HRU threshold by Area/Percentage.
 
# Once selected the different percentages for landuse, soil and slope the button "Create HRUs" should be pressed. In this particular example the percentages chosen were 20, 20 and 100 but this will vary for different applications.[[Image:MWSWAT_Step2.3_MultipleHRU.gif|719px|thumb|center|Create HRUs menu after choosing the diferent percentages for Multiple HRUs]]
 
# If completed succesfully, a window will provide the information about the HRUs created, in my case they were created 85 HRUs in 60 subbasins.
 
# Also at this point, some reports were created about the elevation, basin and HRUs that can be opened from the main MWSWAT window.
 
#Diferences of 2-3% between the diferent parts of landuse, soil and slope from the basin report (LanduseSoilSlopeRepSwat.txt) and the HRUs report (HruLanduseSoilSlopeRepSwat.txt) are allowed.
 
 
===Step 3 Swat Setup and Run===
 
 
#If the Step 2 have been totally completed, the Step 3 will be visible and when we click on it a new screen would appear.[[Image:MWSWAT_Step3.1_SWATSetupandRun.gif|650px|thumb|center|MPSWAT menu after Step 2 completed]]
 
#It is suggested that before filling anything in this new menu to click on Weather Sources button. We would choose as the '''Database tables''' as a weather source and from the drop down menu the one for our study case (i.e. Divor_Weather_Sources). As the Weather Generator, we would choose the '''Table''' option and from the menu the one defined in the MWSWAT database (i.e.wgn_divor). Then clik on '''Done'''.
 
#By doing in this manner, when we come back to the previous menu it can be observed that the Start and Finish date of the period of simulation have been filled with the initial and final data of our database.
 
#Then we should click on the write all files box in the right side of the menu and followed by the '''write files''' button. If everything run ok another box will appear with the message "SWAT input files written".
 
#In this menu you also have the option of running the SWAT model clicking on the '''Run SWAT''' button that would open a DOS window where the model will run and if it runs ok a window confirming with the message "SWAT run successful". Or to edit the SWAT input files by clicking on the "Edit files" button that would open the SWAT Editor 2005 (64 Bit users if you have problems at this point please read carefully the [[Install_SWAT_interface#MapWindow_Installation_Steps | MapWindow Installation Instructions]].
 
 
===Step 4 Run MWSWAT with common calibrations===
 
 
The commom calibrations are in groundwater, soil, and management files. The first callibration affects flow and the other two affect water quality.
 
Just need to change some parameters in the SWAT Editor, make a new simulation structure and rerun the model in to that structure so that you will have two simulations (the first, default parameters, and the second with parameters more fitted in to our watershed reality).
 
To modify the SWAT input files, click on edit files on the last menu from MWSWAT and a new window will turn up.[[Image:MWSWAT_Step4.1_EditSWAT.gif|650px|thumb|center|SWAT Editor Main Menu]]
 
In the "Edit SWAT Input" menu choose "Subbasin Data". Then in the "Select Input Table To Edit", three modifications will be performed:
 
#'''Soils (.Sol):''' Select any Subbasin, Land Use, Soils and Slope option and click "ok". A new window will open. In this new window will modify the USLE_K value from 0.1 to 0.3 and will tick the box "Extend edits to all HRUs". Then "Save Edits" and "Exit".[[Image:MWSWAT_Step4.4_EditSWAT_SoilParametersCorrected.gif|700px|thumb|center|SWAT Editor for Soil parameters]]
 
#'''Groundwater (.Gw):''' Select any Subbasin, Land Use, Soils and Slope option and click "ok". A new window will open. In this new window will set the GW_DELAY (days) and ALPHA_BF (days) to 3 and 1 respectively and will tick the box "Extend edits to all HRUs". Then "Save Edits" and "Exit".[[Image:MWSWAT_Step4.4_EditSWAT_GWParametersCorrected.gif|700px|thumb|center|SWAT Editor for groundwater parameters]]
 
#'''Management (.Mgt):'''Select any Subbasin, Land Use, Soils and Slope option and click "ok". A new window will open. In the top menu choose the "Operations" tab and click on the "Edit Values" and "Edit Operation" buttons. The following values have to be set
 
AFERT_ID    : 28-10-10
 
AUTO_NSTRS  : 0.93
 
AUTO_NAPP    : 50
 
AUTO_NYR    : 300
 
AUTO_EFF    : 1.3
 
AFRT_SURFACE : 0.2
 
Then tick the boxes "Extend Management Options" and "Extend Edits to Selected HRUs". On the menus select All subbasins, the agricultural Land Uses (use the CTRL button for doing so) and all Soils and Slope and clik on "Save Edits"[[Image:MWSWAT Step4.5 EditSWAT MgmtParametersCorrected.gif|700px|thumb|center|SWAT Editor for management parameters]]
 
 
Then we press the "Cancel" button on the Edit Subbasins input menu and we will be back to the SWAT Editor main menu. On the Edit SWAT Input menu there are two important things to do before exiting:
 
*'''To update databases after performing any change'''
 
*'''To re-write SWAT input files '''
 
 
===Converting SWAT model results to CE-QUAL model input files===
 
 
In order to do so follow the instructions on the following [[Eutrofização_Albufeiras#Water_Entering_in_the_reservoir_-_Link_with_SWAT_results | link ]].
 
 
==Running SWAT executable to produce MOHID outputs==
 
To obtain outputs in a format that suits our needs see the steps in [[Mohid_SWAT|Run SWAT with MOHID outputs]].
 
 
==Run SWAT with common calibrations==
 
The commom calibrations are in groundwater, soil, and management files. The first callibration affects flow and the other two affect water quality.
 
 
Just need to change some parameters in the SWAT interface, make a new simulation structure and rerun the model in to that structure so that you will have two simulations (the first, default parameters, and the second with parameters more fitted in to our watershed reality).
 
 
===In Menu >Edit Input >SubBasins Data===
 
By default the first HRU is selected (number, land use, soil are presented and selected)
 
 
1) Lets change in all HRU's the hydraulic response of soil to feed the river (groundwater or baseflow)
 
#Click the .gw
 
#Change GW_DELAY to 3 days
 
#Change ALPHA_BF to 1 days
 
#Click OK
 
#In >LandUses select radio button to >selected and select all the land uses of your project (old down shift and click to multiple selections)
 
#In >Soils select radio button to selected and select all the soils of your project (old down shift and click to multiple selections)
 
It should look like something like this:
 
[[Image:Swat_GWParameter.png|600px|thumb|center|ArcView SWAT GW parameter change]]
 
#Click OK to apply it to all the HRU's
 
 
2) Lets change in all HRU's the soil erodibility. '''Attention that it has to be applied for each soil type at a time!!''' - just follow instructions
 
 
Have to find one HRU for each soil type that exists in the watershed. These HRU's will apply its configuration to all other with the same soil type.
 
 
Do the next steps for each soil type (and HRU representing that soil type):
 
#Click the .sol
 
#Change USLE_K to 0.3 (originally is 0.1)
 
#Click OK
 
#In >LandUses select radio button to >selected and select all the land uses of your project (old down shift and click to multiple selections)
 
#In >Soils do not do anything! It will apply those settings to all land uses with only that soil type.
 
It should look like something like this:
 
[[Image:Swat_SoilParameter.png|650px|thumb|center|ArcView SWAT Soil parameter change]]
 
#Click OK to apply it to all the HRU's with that soil
 
#Do not forget to select now other HRU with a differente soil type. Do this steps until all soil types are covered.
 
 
3) Lets put the autofertilization in all HRU's. '''Attention that it has to be applied for each soil type and each land use at a time!!''' - just follow instructions
 
 
Autofertilization is disconnected by default we will put the parameters for autofertilization thar are in the manual in the agricultural land uses.
 
 
Have to find all the agriculture crops (e.g. AGRC, AGRR, ORCD, RICE...) and select one HRU for each land use (only agricultural) and soil type that exists in the watershed. These HRU's will apply its configuration to all other with the same land use and soil type.
 
Do the next steps for each land use (agricultural) and soil type (and HRU representing that configuration):
 
#Click the .mgt
 
#Double click >Auto fetilization init
 
#Change >fertilizer to 28-10-10 - it is a standard fertilizer (28%N, 10%P, 10%K)
 
#Change >AUTO_NSTRS to 0.93    - it is the treshold of the plant stress to start applying fertilizer
 
#Change >AUTO_NAPP to 50        - it is the maximum amount of fertilizer (N) in one application (kg)
 
#Change >AUTO_NYR to 300        - it is the maximum amount of fertilizer (N) in one year (kg)
 
#Change >AUTO_EFF to 1.3        - it is the fertilization efficiency
 
#Change >AFRT_SURFACE to 0.2    - it is the fraction of fertilizer applied in the first layer of soil [[Image:Swat_MGTParameter.png|650px|thumb|center|ArcView SWAT MGT parameter change]]
 
#Click OK
 
#In >LandUses do not do anything! It will apply those settings to all HRUS with this land use.
 
#In >Soils do not do anything! It will apply those settings to all HRUS with that soil type.
 
It should look like something like this:
 
[[Image:Swat_MGTParameter2.png|500px|thumb|center|ArcView SWAT MGT parameter change]]
 
#Click OK to apply it to all the HRU's with that soil and landuse
 
#Do not forget to select now other HRU with a different soil type and same crop. Do this steps until all soil types are covered for the first crop type.
 
#Do not forget to select now other HRU with a different land use (e.g. AGRC, AGRR, ORCD, RICE...).
 
 
==Run SWAT with Point Sources==
 
Until now SWAT was set up to run with difuse sources and without water quality changes in river (sources are transported and not transformed in the river).
 
In order to have the actual scenario for the reservoirs it is needed to account for point sources (WWTP). It is also needed to account for property transformation since it is discharged in the river until it reaches reservoir.
 
 
Simulations needed:
 
1. Simulation with diffuse sources and without water quality processes in the river (the previous steps).
 
2. Simulation with diffuse and point sources and without water quality processes in the river.
 
3. Simulation with diffuse and point sources and with water quality processes in the river.
 
 
The last two simulations can give an unsight about the processes that SWAT river model (QUAL2E) includes and about the nutrient removal. The nutrient removal should be compared to the estimated by OSPAR.
 
The first simulation allows to estimate the diffuse component of the load. It permits to compare to the point source loads.
 
 
===Identify Point Sources in the watershed===
 
WWTP are identified by "freguesias" but not with X and Y coordinates so as a first attempt WWTP will be addresed to the watersheds by the "freguesias" contained..
 
#Find out what are the "freguesias" in your watershed with \\datacenter\Albufeiras_Eutrofizacao\Produtos\ProjectosGIS\ShapesBase\Conc&Freguesias.
 
#Go to \\datacenter\Albufeiras_Eutrofizacao\ComoFazer\1.PreparaInputs\5.FontesPontuais\1_DadosINSAAR and open the excel file and find all the WWTP that are inside those "freguesias". Copy all the contained WWTP to a new excel file.
 
 
===Compute Point Sources discharges===
 
#Use equivalent inhabitants (HE) to estimate average WWTP flow (100L/HE.day - Metcalf gives a maximum of 90 L/HE.day for data from 1992; presently for Lisbon the average is around 120L/HE.day. Services, food and hotel areas have bigger values but in average it should be around 100 L/HE.day). Compute daily volume in m3 for each WWTP.
 
#Use D.L. 236/98 (anex XVIII in \\Datacenter\Albufeiras_Eutrofizacao\ComoFazer\0.Bibliografia\DL236_98.pdf) to use concentrations limits for discharge: SST - 60 mg/l; Ammonia 8 mgN/l; Nitrato 11 mgN/l; PO4 3 mgP/l (same as Total, assuming all is in dissolved form; WWTP reduces particulate material in deposition and organic in secondary treatment). Compute daily loads for SST in tons and other in Kg.
 
 
===Make a new SWAT Project with point sources===
 
#By now with all the interface errors and crashes, creating a new project is an easy mechanic task :) Input point sources are pointed as inlets before defining outlets in [http://www.mohid.com/wiki/index.php?title=Run_SWAT_Model#Outlet_and_Inlet_Definition Define outlets in SWAT].
 
#Add the "freguesias" shape to arcview view in \\Datacenter\Albufeiras_Eutrofizacao\Produtos\ProjectosGIS\ShapesBase\Conc&Freguesias\FG99.shp
 
# Select "inlet" radio button and "add" to add the point sources [[Image:AddInlet.PNG|500px|thumb|center|Add inlet in SWAT]]
 
# Select the location where you want to add the point source (in case that all the info is about "freguesias" place it near the river inside the "freguesia". Select "point source" and "OK" [[Image:PointSource.png|600px|thumb|center|Add inlet in SWAT]]
 
# After all the inlets are inserted you can insert the outlets desired (as in [http://www.mohid.com/wiki/index.php?title=Run_SWAT_Model#Outlet_and_Inlet_Definition Define outlets in SWAT]).
 
# Assign in the ecxel file with the WWTP loads a column with the subbasin where the point source was added.
 
# Continue the steps as a normal project.
 
# Just before the step of running in the interface [http://www.mohid.com/wiki/index.php?title=Run_SWAT_Model#Run_SWAT_in_the_Interface Run SWAT in the Interface], select menu >Edit Input > Point Sources Discharges
 
# In the window appear all the subbasins with point sources. Click in every each one of them and define the discharge loads. [[Image:PointSourceDischarge.png|800px|thumb|center|Add point source loads in SWAT]]
 
#Run the simulation by default or if the case the one with common calibrations as defined in the normal simulation steps.
 
  
 
[[Category:SWAT]]
 
[[Category:SWAT]]

Latest revision as of 15:14, 2 November 2011

In the next sections, are described the needed steps to be taken in order to perform a SWAT simulation whether using ArcView or MapWindow software.

For the ArcView Tutorial see SWAT in ArcView

For the MapWindow Tutorial see SWAT in MapWindow