Cannot open input file SPE.OUT/ - SWAT CUP Premium

176 views
Skip to first unread message

JC

unread,
Apr 18, 2022, 5:49:09 PM4/18/22
to SWAT-CUP
Dear all,

I write to you because I am calibrating the crop yield of a model and I am facing an issue with the post.bat step,m I got a message saying that SWAT CUP Cannot open input file SPE.OUT... (picture attached):

SPE_RUN.Bat runs smoothly. I noticed that SWAT prints the crop yield output including in the warm up days.

In the executable tables:
- SPE_pre.bat : all the commands are checked up
- SPRE_run.bat : checked up
- SPE_Multi_Obj_Post.bat : all commands are checked up
- Spe_Extract: SPE_extract_mgt_subavg_HHK_CropYield.exe and          SPE_extract_mgt_subavg_HK_CropYield.exe checked up
- SPE_Multi_Obj_Valid.bat : all commands check up

Does anybody know what this error is related to?

Many thanks!

JC
observed.txt
ECHO_SPE_Multi_Obj_95ppu.txt
ECHO_SPE_Multi_Obj_Beh_goal_fn.txt
file.cio
HK_SUAI_13.txt
observed_mgt_subavg_HHK.txt
var_file_name.txt
ECHO_SPE_Multi_Obj_Beh_95ppu.txt
par_val.txt
ECHO_SPE_Multi_Obj_Beh_new_pars.txt
HHK_SUAI_13.txt
ECHO_SPE_Multi_Obj_new_pars.txt
observed_mgt_subavg_HK.txt
par_inf.txt
ECHO_SPE_Multi_Obj_goal_fn.txt
SWATCUP_error.jpg

JC

unread,
May 23, 2022, 3:16:45 PM5/23/22
to SWAT-CUP
can someone please help me with this issue?

Best,

JC

tassiab...@gmail.com

unread,
Nov 15, 2022, 7:48:39 PM11/15/22
to SWAT-CUP
Dear JC,  did you solve the problem? thank you for your time.

JC

unread,
Nov 16, 2022, 6:28:10 AM11/16/22
to SWAT-CUP
Hi! Yes, I did.

So in the Var_file_name (it is in the input files under the "Objective Function") you need to add a "HHK_" or an "Hk_" before the name of the crop and the number of basin you are targetting.

In my case was HHK_SUGC_12.txt  because I was calibrating sugar in the basin 12.

I would suggest to check the outputs you got, you can find them in the SPE.OUT folder even if you can't save the iteration. There you can see if you need to add HHK or HK to the crop name. I honestly did not get an answer about the difference between them, but I got full values in HHK while in HK I got values only in one year.

I hope it helps!
Reply all
Reply to author
Forward
0 new messages