Error in running SWAT

1,829 views
Skip to first unread message

rafiei

unread,
Dec 6, 2011, 6:55:41 AM12/6/11
to SWAT-user
Dear friends,
I set up SWAT successfully but when I want to Run SWAT in interface I got this error:  “swat2009.exe is not recognized as an internal or external command, operable program or hatch file”.

 Then I tried to run it through DOS command prompt window with swat2009Rev488db64, but again I faced with the error. you can see the error in attached file.

 
I will be grateful if someone tells me what I should do for solving this problem

Thanks
Ammar
--
----------------------
Ammar Rafiei

Dept. of Cartography, GIS and Remote Sensing
Georg-August-University of Göttingen
Goldschmidtstr. 5, 37077 Göttingen
Germany

 

 
 
 
 

error-running SWAT.jpg

Justin Goldstein

unread,
Dec 6, 2011, 8:20:41 AM12/6/11
to rafiei, SWAT-user
It seems that the trouble is with your soil data since the attached error message mentions SOL_BD (bulk density of soil?)  Did you alter your soil inputs at all?  I would rewrite the soil inputs (under "write input tables"), run the model, and see what occurs.  Then, I'd make any changes to the soil that are specific to your watershed (assuming you changed anything), rewrite (under "edit swat input") .sol, and see what happens. 

Also, I've tried to run SWAT out of command interface using swat2009Rev488db64, but that's never worked.  Try just double-clicking on the "swat2009" prompt in the same directory and see what happens.

Best of luck!
-Justin


--
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.

rafiei

unread,
Dec 6, 2011, 9:34:12 AM12/6/11
to Justin Goldstein, SWAT-user
Justin,
 
I checked all of my soil classes with their parameters but there was no mistake in SOL_BD!! I rewrite again sol but there was no any change in result!! I don't have swat2009.exe in SWAT directory in program folder,  just I have swat2009Rev488db64, swat2009Rev488db32 and the same for 'rel'.
--
----------------------
Ammar Rafiei Emam

Justin Goldstein

unread,
Dec 6, 2011, 9:40:40 AM12/6/11
to rafiei, SWAT-user
That's interesting; you should have a swat2009.exe in the SWAT directory program folder; I also think that .exe is important to enable SWAT-CUP to work (at least in my experience with the penultimate version of swat).  Can anyone e-mail that .exe?  I know gmail won't allow one to e-mail it because of security concerns but maybe someone has an FTP site or something?  Which version of the software are you using?

rafiei

unread,
Dec 6, 2011, 9:56:43 AM12/6/11
to Justin Goldstein, SWAT-user
yes , maybe the error with interface which mentioned “swat2009.exe is not recognized as an internal or external command, operable program or hatch file" is because of missing of swat2009.exe!!! \
 
I used Arcgis 9.3 and Arcswat 2009.93.7b
 
Thank you very much
Ammar

Jim Almendinger

unread,
Dec 6, 2011, 11:34:34 AM12/6/11
to rafiei, SWAT-user, Justin Goldstein
Rafiei --
It appears that you have all the correct files already.  This new download of ArcSWAT and swat2009 comes with the four executable files you list below -- release and debug versions, for both 32- and 64-bit machines.  When you initiate a model run through ArcSWAT, you have a choice of which of these executables to run.  Whichever one you choose, then ArcSWAT will make a copy of it and name it "swat2009.exe." 

To use one of these executables outside the interface, all you need to do is to make a copy of the one you select, and rename it to swat2009.exe. 

Most people, I presume, have 32-bit computers -- if you don't know, then try that version first. 
The "debug" version was compiled with more internal calculation checks -- that makes the executable larger and much slower, but if you've got problems with your model, the error message might be more helpful. 
The "release" version has fewer internal checks and runs MUCH faster.  That is, the code tends to ignore "problems" like values going to zero or infinity when they shouldn't -- so the model may run, but the results may not be always sensible.  Ideally, the release and debug versions give the same result -- which should be the case if the model is coded perfectly and your input values are all realistic, and if the gurus at Intel have optimized their compiler correctly.  But it is possible for both the debug and release versions to run without apparent error -- and yet have the results be different.  More likely, you may find the model runs with the release version, but crashes with the debug version.  If that happens, you should try to figure out why it is crashing -- don't just presume the results from the release version are OK. 

You really should try running the model with both debug and release versions, and make sure you're getting the same results -- you probably will.  If so -- then great, go ahead with the much faster release version.  If you've got differences, or if the debug version crashes, then you need to dig deeper to find the problem.  There is also a chance that the debug version will give warnings rather than crash outright.  Then you have to decide if these warnings make any real difference or not (and that may be project-specific). 

Cheers,
-- Jim



From: "rafiei" <rafi...@gmail.com>
To: "Justin Goldstein" <gold...@gmail.com>
Cc: "SWAT-user" <swat...@googlegroups.com>
Sent: Tuesday, December 6, 2011 8:56:43 AM
Subject: Re: [SWAT-user:3094] Error in running SWAT


--
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


rafiei

unread,
Dec 9, 2011, 10:56:42 AM12/9/11
to SWAT-user, Justin Goldstein

Dear Friends,


I couldn’t solve the problem with ArcSwat 2009.93.7b therefore I decided to change it to ArcSWAT 2009.93.6. Now the error change to sth else. When I run the swat I got the error: forrt1: error <73> floating divided by zero. You can see the error in attached file. I will be so grateful if you help me to overcome the problem.


thank you

error-running swat.jpg

rafiei

unread,
Jan 18, 2012, 4:21:15 PM1/18/12
to Sheila Christopher, SWAT-user
Sheila,
just copy the  rev481_release.exe   in your TxtInout directory and then run it .



On Thu, Jan 19, 2012 at 12:39 AM, Sheila Christopher <puffchr...@gmail.com> wrote:
Thanks Rafiei.  How do I tell SWAT which exe version to use?


On Wed, Jan 18, 2012 at 4:07 PM, rafiei <rafi...@gmail.com> wrote:
Just check again your usersol table and sure all data you input are in correct format. then use the rev481_release.exe instead of swat2009.exe to run your model.


On Thu, Jan 19, 2012 at 12:31 AM, Sheila Christopher <puffchr...@gmail.com> wrote:
I am trying to run SWAT2009 64 bit


On Wed, Jan 18, 2012 at 3:59 PM, Sheila Christopher <puffchr...@gmail.com> wrote:
Yes.  I wrote all of my input files.  And then I got an error, similar to yours when I tried to run SWAT.  See attached.  It seems there is a problem with the sol table and soil name (SNAM).  I think your screen shot showed a similar problem but it mentioned bulk density.
 
Sheila

On Wed, Jan 18, 2012 at 3:33 PM, rafiei <rafi...@gmail.com> wrote:
Sheila,
which problem? about setup model you means? yes I set up successfully and now  I am trying to calibrate my model. you should run the model by  Rev488 .exe



On Wed, Jan 18, 2012 at 11:49 PM, Sheila Christopher <puffchr...@gmail.com> wrote:
DId you ever solve this issue?  I think I may be having a similar problem with my soils files except it is the SNAM column.
 
Thanks.
Sheila

On Tue, Dec 6, 2011 at 6:55 AM, rafiei <rafi...@gmail.com> wrote:
--
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.
--
----------------------
Ammar Rafiei Emam

Dept. of Cartography, GIS and Remote Sensing
Georg-August-University of Göttingen
Goldschmidtstr. 5, 37077 Göttingen
Germany

 

 
 
 
 

--
----------------------
Ammar Rafiei Emam

Dept. of Cartography, GIS and Remote Sensing
Georg-August-University of Göttingen
Goldschmidtstr. 5, 37077 Göttingen
Germany

 

 
 
 
 


--
----------------------
Ammar Rafiei Emam

Bhesh Raj Thapa

unread,
Jan 13, 2015, 8:20:59 PM1/13/15
to swat...@googlegroups.com
Dear Swat-cup user,

I have also the same type of problem.
When I put my own version of SWAT on SWAT-CUP project directory C:\Program Files (x86)\SWAT-CUP\ExternalData\SourceData\SWAT2012_x64 and C:\Program Files (x86)\SWAT-CUP\ExternalData\SourceData\SWAT2012_x86 and call it swat.exe, my new swat-cup works some how, but still getting error message as attached

It says swat is not recognized as internal or external command, operable Programme or batch file.

Can any one suggest me for the solution?

Bhesh
Reply all
Reply to author
Forward
0 new messages