Could Not Find C:\Name.Sufi2.SwatCup\SUFI2.OUT\beh_*.* file

2,118 views
Skip to first unread message

Filipe Pinhati

unread,
Sep 17, 2020, 10:26:19 AM9/17/20
to SWAT-CUP
I am getting this error when running SUFI2_post.bat

###

F:\PhD_2019\SWAT\SWAT-CUP\KSwatCup\KSwat1.Sufi2.SwatCup>SUFI2_goal_fn.exe
Could Not Find F:\PhD_2019\SWAT\SWAT-CUP\KSwatCup\KSwat1.Sufi2.SwatCup\SUFI2.OUT\beh_*.*
1    NS=  -31.632210
!ERROR simulation number 2 in variable file 1 is missing or has a problem

F:\PhD_2019\SWAT\SWAT-CUP\KSwatCup\KSwat1.Sufi2.SwatCup>SUFI2_new_pars.exe
Reading goal file
simulation no  3  is missing from the goal.txt file
F:\PhD_2019\SWAT\SWAT-CUP\KSwatCup\KSwat1.Sufi2.SwatCup>SUFI2_95ppu.exe
finished reading observation file
reading FLOW_OUT_1
Error! simulation 1 has problems

F:\PhD_2019\SWAT\SWAT-CUP\KSwatCup\KSwat1.Sufi2.SwatCup>SUFI2_95ppu_beh.exe
Cannot open input file /SUFI2.OUT/no_beh_sims.txt
THIS IS NOT AN ERROR!!
There were no solutions with the
objective function value >=  the behavioral threshold

F:\PhD_2019\SWAT\SWAT-CUP\KSwatCup\KSwat1.Sufi2.SwatCup>rem 95ppu_NO_Obs.exe

###

I have read that this error may be caused by a mismatch between the observed and the output.rch file, but I have checked my observed file and it is ok, considering that the number of observed days match the output.rch file, my observed data really begins on day 732, and I really have 730 observations. 

I am even running with only one variable, just to make sure I don`t have any variable with a too broad range.

I am stuck with SWAT-Cup for 2 weeks now, and i am in a critical position in my research. 

I am sending the files from the Echo folder, in case someone is able to shed light on my problem.

I really can`t see where the problem is, unfortunately.

Echo_make_par.txt
echo_95ppu_beh.txt
echo_95ppu.txt
echo_goal_fn.txt
echo_extract_rch.txt
echo_LH_sample.txt
echo_new_pars.txt

Yuhang.Charles Wei

unread,
Mar 26, 2021, 3:24:51 PM3/26/21
to SWAT-CUP
Hi have you solved this problem? I am stuck in the same problem now.

Yuhang

Filipe Pinhati

unread,
Apr 7, 2021, 1:37:07 AM4/7/21
to swat...@googlegroups.com
Hi Yuhang, 

Yes I did solve the problem.
It was due to a wrong syntax in the Observed_rch.txt and Observed.txt files.
See the Swat-Cup user manual, page 28 (6.Observation) for more details.

--
You received this message because you are subscribed to a topic in the Google Groups "SWAT-CUP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swat-cup/4n82pZ98kyQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swat-cup+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/swat-cup/9c6dcd51-e2f1-47cb-bad8-bec6b1a95cd4n%40googlegroups.com.

Sher zaman

unread,
Apr 17, 2021, 8:38:41 AM4/17/21
to SWAT-CUP
I am facing this problem again and again i also visit the manual but still this error occurs. my Observed_rch.text file and and Observed.text have right syntax.  
observation.txt

Filipe Pinhati

unread,
Apr 19, 2021, 2:51:25 AM4/19/21
to SWAT-CUP
Hi 

This seems incomplete. This is just the header of the observed data.
You should provide the observed data below the header for the days in your simulation that you want to compare with.
I am sending an example with 9 different observed data locations in the simulation.
The manual explains how to do it.
observed.txt

Sher zaman

unread,
Apr 19, 2021, 3:16:18 AM4/19/21
to swat...@googlegroups.com
Hi, 
I have only one variable to simulate which is flow out and  i gave it as in manual and facing the error as I mentioned. 

You received this message because you are subscribed to the Google Groups "SWAT-CUP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swat-cup+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/swat-cup/9377d7c3-d1cd-449b-9450-a7f91542dfd7n%40googlegroups.com.

Sher zaman

unread,
Apr 19, 2021, 7:55:17 AM4/19/21
to SWAT-CUP
this is the complete templet please have a look
observation.txt

Filipe Pinhati

unread,
Apr 20, 2021, 8:50:10 PM4/20/21
to SWAT-CUP
All right, this is the Observed_rch.txt.
Please send through the Var_file_rch.txt, the SUFI_extract_rch.def, the Observed.txt and the Var_file_name.txt file as well.
Also go in your Echo folder and send through the echo_goal_fn.txt and the echo_extract_rch.txt files as well.

Cheers

Phil

Marietta L.

unread,
Jul 2, 2022, 10:08:27 AM7/2/22
to SWAT-CUP
same error here, I will send you my files. Except that I am using a different objective function. NS with 0.5. The file crashes because the NS in the 2019 version of SWAT CUP cannot go below 0, my guess that Muhamma's goes below zero also. This is strange because it has worked in prior calibration, just that I changed to a calibration and validation period. I will take a closer look at my observed text files at the same time. I am wondering if there is a hidden code from excel that may have been copied over.

I pretty much have sent all the files that I have edited for my calibration model.
observed_rch.txt
par_inf.txt
observed.txt
file.cio
echo_95ppu_beh.txt
var_file_name.txt
SUFI2_swEdit.def
SUFI2_extract_rch.def
var_file_rch.txt
Try2 Error Again.png
echo_goal_fn.txt

Marietta L.

unread,
Jul 2, 2022, 10:58:17 AM7/2/22
to SWAT-CUP
I solved this, when I typed in the new number of calibration years, I also replaced the line above it with the max error of 10%. I just used the echo file you mentioned and saw it was looking for a 245% error.

David Mugenyi

unread,
Jul 2, 2022, 11:32:15 AM7/2/22
to swat...@googlegroups.com
Dear Marrieta. L
it seems you have solved the problem, can I share with you my files and you check for me?
David 



--

LETICIA BAENA RUIZ

unread,
Jul 7, 2022, 7:53:39 AM7/7/22
to SWAT-CUP
Dear Marietta,
thank you very much for sharing your experience. I have the same problem. In my case the percent error= 324. 
How did you solve the problem? Did you replace the "percentage of measurement error" value in "observed.txt" file by 245?

Thank you in advance.

Best regards,
Leticia

David Mugenyi

unread,
Jul 8, 2022, 7:42:39 AM7/8/22
to swat...@googlegroups.com
Dear Swat Cap Users, 
my P factor value is very small about 18%, 
How can improve it 
Goal_type= Nash_Sutcliff    No_sims= 20     Best_sim_no= 4    Best_goal = -3.064334e-002

Variable           p-factor  r-factor  R2    NS     bR2      MSE       SSQR       PBIAS  KGE  RSR   MNS   VOL_FR  ---  Mean_sim(Mean_obs)   StdDev_sim(StdDev_obs)
FLOW_OUT_1         0.18      0.02      0.01  -0.03  0.0001   1.7e+003  1.4e+003   2.9   -0.27 1.02  -0.02 1.03           52.74(54.35)           3.80(40.15)

        r__CN2.mgt________1       -0.404435     0.024435
              r__SOL_AWC(1).sol________1       -0.343974    -0.041026
                r__SOL_K(1).sol________1       -0.324701     0.724701
               r__SOL_BD(1).sol________1       -0.947483     0.112483
                    a__GWQMN.gw________1        8.031958    25.718042
                 a__GW_REVAP.gw________1       -0.068018     0.003018
                  v__REVAPMN.gw________1        4.715211    14.784789
                    a__ESCO.hru________1        0.079001     0.250999
                 r__HRU_SLP.hru________1        0.038613     0.151387
                    r__OV_N.hru________1       -0.120818     0.050818
                r__SLSUBBSN.hru________1       -0.035696     0.125696


Bhim Ghale

unread,
Jul 8, 2022, 8:22:05 AM7/8/22
to swat...@googlegroups.com
You have to simulate about 1000 simulation 

David Mugenyi

unread,
Jul 8, 2022, 10:15:21 AM7/8/22
to swat...@googlegroups.com
Thank You I have improved my p-factor by up to 73%
I also think, because of large data gaps, I should also run the model on a daily time step since my data has many gaps, just to improve the graph
any suggestion?
David

Bhim Ghale

unread,
Jul 8, 2022, 10:22:11 AM7/8/22
to swat...@googlegroups.com
Are you doing with hourly data??





Thanks 

Bhim Ghale 



David Mugenyi

unread,
Jul 8, 2022, 10:30:59 AM7/8/22
to swat...@googlegroups.com
I am doing with monthly, but i wanted to change to daily data just to improve my graph
David 

David Mugenyi

unread,
Jul 8, 2022, 10:35:25 AM7/8/22
to swat...@googlegroups.com
Dear Marietta,
Sorry for what you are going through, I have also been through that many times
But most likely, the problem is in your observed data files, secondly first watch tutorials and check whether you don't have missing data
it will run well
share with me your observation/discharge data (excel file I check)
David 

On Sat, Jul 2, 2022 at 5:08 PM Marietta L. <m.c.l...@gmail.com> wrote:

Bhim Ghale

unread,
Jul 8, 2022, 10:41:05 AM7/8/22
to swat...@googlegroups.com
It may be  due to parameter or you have to check  observed discharge data.

Salman Khan

unread,
Aug 12, 2022, 6:39:52 AM8/12/22
to swat...@googlegroups.com
Dear Pinhati,
Hope you have solved the problem. In my case I calibrated and validated my model successfully. Now, I am trying to quantify my model uncertainty and perform future projections for streamflow in SWAT-CUP Premium v6.2. I just replaced the future pcp & tmp file into my SWAT-CUP directory and updated the file Cio. I also edited the No.Observed.Extract.Rch.def file with future dates and checked executables for the same. However, after running the model with the same number of simulations and same parameter ranges as in case of calibration, I am getting an error and I can not open the 95PPU for No.Observed.Rch.
Note: I can't see the No.Observed 95PPU definition file in SWAT-CUP Premium as in the case of SWAT-CUP 2012. The error and the ECHO.FILES for the same Iteration are attached herewith.

Please help me solve this problem.

image.png

--
You received this message because you are subscribed to the Google Groups "SWAT-CUP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swat-cup+u...@googlegroups.com.
ECHO_LH_sample.txt
ECHO_SPE_Single_Obj_95ppu.txt
ECHO_SPE_Single_Obj_goal_fn.txt
ECHO_SPE_Single_Obj_new_pars.txt

June Cagampang

unread,
May 16, 2023, 7:15:28 AM5/16/23
to SWAT-CUP
Hi Marietta. I ran in the same error as yours, which part did you exactly replace in the line above? I'm a little confused here and badly need some help. My study is in near the deadline and I'm stuck here for days, your response will help me a lot. Thank you.
Message has been deleted

Lucas Rollin Hilsendeger

unread,
Jul 24, 2023, 10:20:03 AM7/24/23
to SWAT-CUP
Hi!

I was able to solve this issue by correcting my SUFI2_swEdit.def
For example, if you want to run 500 simulations:

1        : starting simulation number

500      : ending simulation number

The user manual page 26 is very misleading, that is why I was introducing the years, instead of the simulations and having that error.

I hope it helps!
Regards, Lucas

Rym Hadded

unread,
Sep 18, 2023, 6:28:20 AM9/18/23
to SWAT-CUP
Dear all,
I have this problem. could some one help me please Iam blocked from many time and I need it soon.
Thank you in advance.

The file “Iter1\SUFI2.Out\95ppu_g_No_Obs.txt does not exist”

 The file “Iter1\SUFI2.Out\new_pars.txt does not exist”

And when importing new parameters for the new iteration this message appears: “could not find the “.....\SUFI2.Out\new_pars.txt”.

Thank you in advance.


Rym Hadded

unread,
Jan 15, 2024, 4:46:18 AM1/15/24
to SWAT-CUP
Hi 
I faced the same error and I can't solve it could you help me

Le jeudi 17 septembre 2020 à 15:26:19 UTC+1, Filipe Pinhati a écrit :

Ahsan Ullah Khan

unread,
Jan 15, 2024, 4:49:02 AM1/15/24
to swat...@googlegroups.com
This happens cuz of wrong input , also Try making new swat cup project and make sure all Ur input is correct

--
You received this message because you are subscribed to the Google Groups "SWAT-CUP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swat-cup+u...@googlegroups.com.

NSANGOU Daouda

unread,
Jan 16, 2024, 9:12:46 AM1/16/24
to swat...@googlegroups.com
Bonjour chères toutes, je sollicite votre aide pour réaliser des simulations sur SWAT_CUP. En effet, après avoir préparé et lancé la calibration sur SWAT_CUP, le logiciel continue à tourner sans s'arrêter. Cependant, les itérations n'avancent pas. L'écran qui s'affiche est comme suit.

WhatsApp Image 2024-01-15 at 05.45.14 (1).jpeg
WhatsApp Image 2024-01-15 at 05.46.04.jpeg
WhatsApp Image 2024-01-15 at 05.47.01.jpeg

NSANGOU Daouda

unread,
Jan 16, 2024, 9:15:47 AM1/16/24
to swat...@googlegroups.com
S'il vous plait aider moi aussi à résoudre ce problème:

C:\Users\HP\Desktop\TEST4\Testcaliba.Sufi2.SwatCup>SUFI2_goal_fn.exe
Could Not Find C:\Users\HP\Desktop\TEST4\Testcaliba.Sufi2.SwatCup\SUFI2.OUT\beh_.
1    NS=  -1.585058
!ERROR simulation number 2 in variable file 1 is missing or has a problem

C:\Users\HP\Desktop\TEST4\Testcaliba.Sufi2.SwatCup>SUFI2_new_pars.exe
Reading goal file
simulation no  3  is missing from the goal.txt file
C:\Users\HP\Desktop\TEST4\Testcaliba.Sufi2.SwatCup>SUFI2_95ppu.exe
finished reading observation file
reading FLOW_OUT_1
Error! simulation 1 has problems

C:\Users\HP\Desktop\TEST4\Testcaliba.Sufi2.SwatCup>SUFI2_95ppu_beh.exe
Cannot open input file /SUFI2.OUT/no_beh_sims.txt
THIS IS NOT AN ERROR!!
There were no solutions with the
objective function value >=  the behavioral threshold

C:\Users\HP\Desktop\TEST4\Testcaliba.Sufi2.SwatCup>rem 95ppu_NO_Obs.exe

Rym Hadded

unread,
Jan 17, 2024, 10:12:30 AM1/17/24
to SWAT-CUP
Add your SWAT.exe file to the SWAT CUP folder. It should solve the problem.
if the problem percist, sheck the input very well;  the observation timing start after eliminating the warm period.

NSANGOU Daouda

unread,
Jan 25, 2024, 5:51:19 AM1/25/24
to swat...@googlegroups.com
Hello there.  I'm trying to run a calibration with daily flows on SWAT_CUP and I get this message "1992 is a leap year. Please help me to solve this problem.
image.png

Rym Hadded

unread,
Jan 25, 2024, 8:17:01 AM1/25/24
to swat...@googlegroups.com
is not an error when you have missing input data it appears leap year .


Reply all
Reply to author
Forward
0 new messages