sensitivity analysis problem

282 views
Skip to first unread message

jacqueline

unread,
Apr 5, 2012, 3:55:34 PM4/5/12
to swat...@googlegroups.com
Dear All,

Hi, I am looking for helps with my sensitivity analysis. My SWAT was able to run sensitivity analysis without observed flow data, but after I tried to plug in observed data, SWAT never ran successfully. So I suspect that there are some problems with my observed data files. I know there were a lot of discussions on observed data format before, I actually used those discussion as my guide to create observed data files, but they just didn't work! I attached the files that I used here, would someone please have a look my files and help me with them? As you can see, I tried bother .dat and .prn format but neither worked. About the format, I followed 1X5i, 3x 2i, 3x, 1X11F.3. For the parameters chosen for output, I selected average/load for all of them. I chose 'flow' as the only parameter for comparison between observed and simulated values. I'd really appreciate any help from you. 

best,

Jackie
of4.dat
of5.prn

Justin Goldstein

unread,
Apr 5, 2012, 4:13:13 PM4/5/12
to jacqueline, swat...@googlegroups.com
Try doing 5 (col 1) 5 (col 2) 14.3 (col 3).
In col 1, you enter the year, in col 2 - the month, and in col 3, the observed data.

Good luck!


--
You received this message because you are subscribed to the Google Groups "SWAT-user" group.
To view this discussion on the web visit https://groups.google.com/d/msg/swatuser/-/cqyIGjoo33AJ.
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.

Justin Goldstein

unread,
Apr 5, 2012, 4:13:47 PM4/5/12
to jacqueline, swat...@googlegroups.com
I meant "column width" of 5 in col 1, "column width of 5 in col 2, and col. width of 14.3 in col 3.  Sorry for the omission.

jacqueline

unread,
Apr 5, 2012, 5:59:10 PM4/5/12
to swat...@googlegroups.com, jacqueline
Sorry Justin, never meant to spam you with my replies, this google new interface is messing me around. Anyway, I will just re-post my reply to you here.

Thanks for your reply. I think the way that I did is same with what you described, 5 for year (first is a space, followed with 4-digit year), then 5 for month (frist 3 or 4 are spaces), and 14.3 for flow. Or is there a specific way to set column width that I don't know about? I created my file in excel, then pasted that into .txt with right spaces, then changed extension to .dat, is this the right way? Thanks a ton!

Jackie
To unsubscribe from this group, send email to swatuser+unsubscribe@googlegroups.com.

Opuro

unread,
Apr 5, 2012, 11:40:53 PM4/5/12
to swat...@googlegroups.com
Hi Jacqueline, this is a common problem and I think it's about time we found a reliable solution. I encountered the problem too in my early stages of using the model. This is how I went around it. I tried to follow the formatting as depicted by the fortran formatting provided in the help files. However, it appears excel formatting is not recognized in ASCII format which is what most .dat and .txt files render in. So I turned to textpad ( a free text editor available online at  http://www.textpad.com/download/#downloads ), and did the formatting manually by selecting the specific columns from my observation data and then applying for example a space for the date column (1X5i). I do this for all the columns and then save the file with a .dat extension and it seemed to have solved the problem. Sorry for the long response; hope this works for you. 

jacqueline

unread,
Apr 6, 2012, 11:42:32 AM4/6/12
to swat...@googlegroups.com
Opuro,

THANK YOU for your long response. I tried another way for formatting for now: it seems that you can change the column width in excel, just by right-click on the column. So I can change it to 5 or 11.3 or 14.3, then save it as .prn, which is also space delimited. My SWAT is running SA using this new file, hopefully it will work out, if not, I will try the way that you provided. Really appreciate your help!

Jackie

ypap1

unread,
Jun 20, 2012, 6:45:12 AM6/20/12
to swat...@googlegroups.com
The solution for creating the observation file in Excel, by setting columns to certain width is ideal and works. Thanks a lot!!!
Reply all
Reply to author
Forward
0 new messages