Sensitivity and Calibration Resources for Unix (Centos) Systems

174 views
Skip to first unread message

Bill Capehart

unread,
Jan 12, 2021, 2:35:51 PM1/12/21
to SWAT+
Hello All.

Are there any resources that can be used to run sensitivity runs or calibration runs for SWAT+ on unix?  

Thanks Much
Bill Capehart
SD Mines

Christoph Schürz

unread,
Jan 13, 2021, 3:42:44 AM1/13/21
to SWAT+
Hi Bill,

if you are familiar with R then you could use my SWATplusR package together with the sensitivity or the fast packages (or you write your own routine of course). On the github page of SWATplusR there is also a short chapter on how to implement sensitivity analyses (https://chrisschuerz.github.io/SWATplusR/articles/01_par_sensitivity.html) and model calibration using LHS sampling (https://chrisschuerz.github.io/SWATplusR/articles/02_par_sampl_calib.html).

I tested the package so far on ubuntu, but in theory it should also run on other unix systems as well. The main issue might be to get a recent SWAT+ linux executable. I have not checked for a while. But I think there is one at least for rev59.3

Best
Christoph
Message has been deleted

Bill Capehart

unread,
Jan 13, 2021, 10:39:07 AM1/13/21
to SWAT+

Thanks Christoph...  We're on Centos 7 so that means rebuilding R from source since the supported versions go only to 3.6. Also does it accomodate multivariate calibration?

Cheers n Thanks
Bill Capehart
SD Mines

Christoph Schürz

unread,
Jan 14, 2021, 3:19:33 AM1/14/21
to SWAT+
Oh well, that could be an issue. I recently updated SWATplusR to R 4.x. As there were some major updates in some of the R package dependencies I am not sure about the downward compatibility to R3.x.
Concerning multivariate calibration, in theory yes! SWATplusR just handles the communication between your SWAT TxtInOut folder and your R instance, takes care of parallel computing and tidying outputs ect. The simulation workflow that you build around that can be whatever you plan to do. This requires however that the user has to think about writing the analysys workflow and it is not just clicking through as it might be in SWAT-CUP or JAMES+.

Cheers
Christoph

Bill Capehart

unread,
Jan 14, 2021, 12:16:09 PM1/14/21
to SWAT+
Christoph:

The SWATplusR install process stops when it doesn't find an R version < 4.0.  If you know how to work with your unix system, you have to compile R from source either for all uses or for your personal program stash which is what we have had to do here for a number of applications beyond SWAT.

Bill

Christoph Schürz

unread,
Jan 15, 2021, 2:30:01 AM1/15/21
to SWAT+
Yes, I added this version constraint in the R package discription file. This was necessary due to some changes in R and the R package dependencies for the update of R from version 3 to 4. I could change that back to R 3 but there is no guarantee then that the R package behaves as it should do

Best
Christoph

Shibu Ebrahim Muhammed

unread,
Apr 15, 2021, 10:15:18 AM4/15/21
to SWAT+
Hi ,

I am just going through the swatplusR. I am new to swat.  I wonder how we can prepare input files required to run the model (as I see in the demo data) from the raw data (DEM, LULC, soil). Can I R to process  or  should I use swat editor for this before running with swatplusR. Help would be appreciated.

thanks
S

Christoph Schürz

unread,
Apr 19, 2021, 3:11:20 AM4/19/21
to SWAT+
Hi,

you can use the QSWAT+ plugin for QGIS and the SWAT+ Editor to set up your model. Jaclyn and Chris did a wonderful job there and provide some very user friendly tools. SWATplusR in fact only provides an interface to connect your TxtInOut project folder with your R programming environment. This is then helpful for model calibration etc.

Best
Christoph
Reply all
Reply to author
Forward
0 new messages