Manual Calibration

2,087 views
Skip to first unread message

Tue Nguyen

unread,
Sep 10, 2011, 10:24:26 PM9/10/11
to SWAT-user
Dear SWAT Users,

I do not how to manual calibrate after running SWAT. Actually, I tried to edit manually some parameters including AlphaBf, CN2, CH-N2, CH-K2 ...in the simulation folder (Sim1) but can not Run model after editing.
Now, I want to manual calibrate OV-N, CH-K1, CH-N1. Anybody can help me?
I am using SWAT 2005.

Thanks you.
Micno

Jim Almendinger

unread,
Sep 11, 2011, 1:43:45 PM9/11/11
to Tue Nguyen, SWAT-user
To edit input parameter during manual calibration, I generally write update queries in Access to alter the tables in the project data base.  To not clutter up the project data base with my own queries, I make a new Access database with links to the input tables in the project data base.  After modifying the input tables in the project database, then they need to be re-written to the text files in the TxtInOut folder before running SWAT.  
   I do a similar thing for analyzing output data -- I create my own Access data base with links to the output tables, and write queries to extract and manipulate the data I need.  (Note that you must have ArcSWAT read the output text files into the output database first, after your model run.)
   The capability for Access to manipulate input and output data is tremendously useful -- I think it's a great improvement in ArcSWAT from previous versions.  You just have to remember that SWAT itself reads and writes text files in the TxtInOut folder.  Anytime you modify the input tables in the database, you need to write those results as text files to TxtInOut.  And, after running the model, you need to read the output text files from TxtInOut into the output database.  There you can use the power of Access / SQL to extract the specific data you need. 
-- Jim



From: "Tue Nguyen" <tues...@gmail.com>
To: "SWAT-user" <swat...@googlegroups.com>
Sent: Saturday, September 10, 2011 9:24:26 PM
Subject: [SWAT-user:2978] Manual Calibration
--
You received this message because you are subscribed to the Google Groups "SWAT-user" group.
To post to this group, send email to swat...@googlegroups.com.
To unsubscribe from this group, send email to swatuser+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/swatuser?hl=en.


--
Dr. James E. Almendinger
St. Croix Watershed Research Station
Science Museum of Minnesota
16910 152nd St N
Marine on St. Croix, MN  55047
tel: 651-433-5953 ext 19


nguyen lan huong

unread,
Jun 17, 2016, 2:17:25 AM6/17/16
to SWAT-user, din...@smm.org
Dear Jim,

I am new user of swat and I do not have knowledge about how to extract the information from text output files.  Could you please share with me how to extract the data from the text file using access?

I would like to extract discharge from the monitoring points

Thank you in advanced

Lan

Jim Almendinger

unread,
Jun 20, 2016, 11:51:54 AM6/20/16
to nguyen lan huong, SWAT-user
Dear Lan --
I usually don't read the output text files directly, and if I do, I use R to read in the files and manipulate the data. 
Instead, I usually use the ArcSWAT interface to load the text files into an Access database, and then within Access I extract the output I want from the tables in the database.  To do this, after running SWAT, choose SWAT simulation/Read SWAT Output.  Choose the output files to import into the database (I usually choose output.rch, and sometimes output.sub, output.hru, and output.rsv).  Then click "Import Files to Database."
The output database is in the Scenarios/Default/TablesOut folder of your project database.  It is called "SWATOutput.mdb." 

Then I use queries to extract the data I want.  It's beyond the scope of this forum to teach users how to use Access queries, but start with simple "select" queries to get the data (for example) for selected reaches and selected years.  You can aggregate data to get averages or sums with the "Totals" option.  With a few auxiliary tables giving more user information about each HRU, subbasin, or reach, you can extract and summarize data in more sophisiticated ways by joining these tables to the SWAT output tables.  I almost always create an HRUinfo table that identifies further information about my HRUs, like what crop rotation is in each one, which HRUs are grazed, what the hydrologic soil group is, and so forth.  I also create a SUBinfo table identifying which subbasins are in a region of interest (usually tributary subwatersheds). 

In short -- it is worth learning how to write queries in Access to extract the data of interest from SWAT output tables.  Understanding a little about database queries is a useful skill for most scientists and engineers. 
Then I often copy and paste from Access into Excel for simple plotting during calibration (I do all my final plots in R). 

-- Jim



nguyen lan huong

unread,
Jun 26, 2016, 9:31:53 PM6/26/16
to Jim Almendinger, SWAT-user
Dear Jim,

Thank you very much for your kind response and detail explanation of the process.

I just started to use access so simple queries is easy to use when extracting data from swat output files.

Thank you again, 

Lan

--
You received this message because you are subscribed to a topic in the Google Groups "SWAT-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swatuser/8wm6uC4Eiow/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swatuser+u...@googlegroups.com.

To post to this group, send email to swat...@googlegroups.com.

farah khan

unread,
May 4, 2017, 4:36:41 PM5/4/17
to SWAT-user
hello i am using swat model for my research topic i want to do manual calibration but i have no idea how to start it can u plz help me thanks
Reply all
Reply to author
Forward
0 new messages