Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Sufi2_Run.Bat

68 views
Skip to first unread message

Sefa Nur Yeşilyurt

unread,
Oct 27, 2024, 1:20:32 PM10/27/24
to SWAT-CUP
Hello, I am trying to calibrate SWEAT-CUP after entering all the input files. I do not receive any errors, but when it comes to this screen, the running process does not end even though I tried 2-3 iterations (I set it this way just for testing purposes. Normally, I should choose around 500). I waited for 2-3 hours, but it still continues like this. When I look at the Task Manager, I see about 65% CPU and 30% Memory. In other words, it does not overly strain the computer. But I do not get any results. Does anyone know the reason or solution?

Screenshot 2024-10-27 202006.png

Yinlong Huang

unread,
Oct 27, 2024, 1:34:02 PM10/27/24
to swat...@googlegroups.com
Hi Sefa,

I'm assuming you are calibrating against streamflow? Or you might be calibrating the model against some other observed files? This type of error is mainly due to your order in you SUFI2_extract_rch.def (or hru, etc.,) because you have to arrange your file extraction in an increasing order. For example, say you are calibrating the model against streamflow, then in your .def file, the extracted subbasins should be arranged in increasing order (say 1, 2, 3, 4...). You can post a picture of your .def file (depending on what you are extracting) and we can take a look at it. On top of that, your observed streamflow in observed.txt and observed_rch.txt should also be numbered correctly. 


Sefa Nur Yeşilyurt <yesilyurt...@gmail.com> 于2024年10月27日周日 11:20写道:
Hello, I am trying to calibrate SWEAT-CUP after entering all the input files. I do not receive any errors, but when it comes to this screen, the running process does not end even though I tried 2-3 iterations (I set it this way just for testing purposes. Normally, I should choose around 500). I waited for 2-3 hours, but it still continues like this. When I look at the Task Manager, I see about 65% CPU and 30% Memory. In other words, it does not overly strain the computer. But I do not get any results. Does anyone know the reason or solution?

--
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 visit https://groups.google.com/d/msgid/swat-cup/143b8378-4db0-4809-9ecf-a0700caf06d1n%40googlegroups.com.


--

Yinlong (David) Huang 
B.Sc Engineering(Civil), M.Sc, Ph.D student

Watershed Science and Modelling Laboratory

https://cms.eas.ualberta.ca/faramarzilab/

University of Alberta
Department of Earth and Atmospheric Sciences
Edmonton, AB  T6G 2E3, Canada
1-26 Earth Sciences Building

Sefa Nur Yeşilyurt

unread,
Oct 27, 2024, 2:00:35 PM10/27/24
to swat...@googlegroups.com, yinl...@ualberta.ca
First of all, thank you for your answer. I am doing flow modeling in a basin in Turkey. I will only model the flows. I have data from 1994 to the end of 2016. My modeling was done monthly in this way. I am sending you my files and images of some of the values I used. I cannot understand why the process could not be completed and where I made a mistake. Also, when I close this part and complete the process, only the goal file is created. I know that the sensitive analysis part uses this file. But I am getting an error and I added that error. I have been struggling with this problem for days and unfortunately I could not solve it. Can you help me?

Yinlong Huang <yinl...@ualberta.ca>, 27 Eki 2024 Paz, 20:34 tarihinde şunu yazdı:


--
Arş. Gör. SEFA NUR YEŞİLYURT
Dokuz Eylül Üniversitesi, Mühendislik Fakültesi,
İnşaat Mühendisliği Bölümü, 
İzmir-Türkiye
Res. Asst.  SEFA NUR YEŞİLYURT
Dokuz Eylul University, Faculty of Engineering,
Department of Civil Engineering, 
Izmir-Turkey




sufi2_extract_ref.png
observed.png
sensetive_error.png
failcio2.png
observed_rch.png
sufi2_sweditdef.png
filecio1.png
par_inf.png

Sefa Nur Yeşilyurt

unread,
Oct 27, 2024, 2:02:22 PM10/27/24
to swat...@googlegroups.com, yinl...@ualberta.ca
I forgot to mention. I have a total of 5 sub-basins and I have flow stations in 3 of them. There are stations at numbers 1 3 5 so I entered the data accordingly.

Sefa Nur Yeşilyurt <yesilyurt...@gmail.com>, 27 Eki 2024 Paz, 20:59 tarihinde şunu yazdı:

Yinlong Huang

unread,
Oct 27, 2024, 2:12:09 PM10/27/24
to Sefa Nur Yeşilyurt, swat...@googlegroups.com
Several things you might need to modify:

1. in this section of file.cio, change all the 1's into 0. Here the 1 means that you are only extracting 1 variable among all the variables in output.rch file, and if you only want to extract outflow, it shouldn't be 1, because this "1" here represents "column 1 of output.rch file". If you put 1 here then you are not actually extracting the outflow, but you are extracting some other columns. 
image.png

2. you have inconsistency of your SUFI2_extract_rch.def file with your climate data. Like you said, your climate data goes from 1994-2016. In that case, you have 2017 here. So change it to 2016. That would resolve the problem. On top of that, in your file.cio, you are saying that your ending julian day of simulation is 365, but since your climate data ends in 2016, and 2016 is a leap year, so you should put 366 here instead of 365. 
image.png
image.png

3. The biggest problem is this: in your SUFI2_extract_rch.def file, you are saying that you are extracting outflow from 3 subbasins: 1, 3 and 5, but in your observed.txt and observed_rch.txt file, you only have the outflow for subbasin 1, not 3 and 5. I don't know if you have the observed flow time series for those subbasins, but if you only have 1 outflow, then in the SUFI2_extract_rch.def file, you should only put 1 as number of reaches. 

Sefa Nur Yeşilyurt <yesilyurt...@gmail.com> 于2024年10月27日周日 12:00写道:

Sefa Nur Yeşilyurt

unread,
Oct 27, 2024, 2:23:59 PM10/27/24
to SWAT-CUP
I am grateful for your quick response. I made the changes you mentioned. I have 3 stations and I have the observation data for them. Therefore, I adjusted these sections as follows. I only sent some of them when I sent them to you. When I did some research, I realized that the number of simulations might be insufficient, my student. I also increased the number of simulations. But it still continues like this. When I close and continue, the global sensitive analysis also gives the same error? Should I wait longer? I don't understand.

27 Ekim 2024 Pazar tarihinde saat 21:12:09 UTC+3 itibarıyla Yinlong Huang şunları yazdı:
sensetive_error.png
2.png
3.png
1.png

Yinlong Huang

unread,
Oct 27, 2024, 2:52:23 PM10/27/24
to swat...@googlegroups.com
Hi Sefa, 

I have a feeling that because you are using Nash Sutcliffe so that might be the reason why, maybe change your method into bR2, and give it a try? Change the method from 5 to 2 in your observed.txt file and give it the try.



Yinlong (David) Huang 
B.Sc Engineering(Civil), M.Sc, Ph.D student

Watershed Science and Modelling Laboratory

https://cms.eas.ualberta.ca/faramarzilab/

University of Alberta
Department of Earth and Atmospheric Sciences
Edmonton, AB  T6G 2E3, Canada
1-26 Earth Sciences Building

Sefa Nur Yeşilyurt

unread,
Oct 28, 2024, 2:04:10 PM10/28/24
to SWAT-CUP

Thank you for all your help. It was fixed when I deleted two lines in the file I sent below. I also saved the hydrological model again while checking this. then I did the swat cup again. although I did the same things, it was fixed this way.
(only for those who have the same problem)
27 Ekim 2024 Pazar tarihinde saat 21:52:23 UTC+3 itibarıyla Yinlong Huang şunları yazdı:
Screenshot 2024-10-28 210214.png

Yinlong Huang

unread,
Oct 28, 2024, 2:08:29 PM10/28/24
to swat...@googlegroups.com
That makes sense, my supervisor mentioned that because of the programming language, swat-cup is quite sensitive to some unexpected spaces and lines. Good to know!

Sefa Nur Yeşilyurt <yesilyurt...@gmail.com> 于2024年10月28日周一 12:04写道:

Sefa Nur Yeşilyurt

unread,
Oct 28, 2024, 3:50:46 PM10/28/24
to swat...@googlegroups.com

yes, it was already written in these two lines that it could be deleted. When I did these, everything was fixed. Your supervisor is quite right. I recommend it to friends who have this problem.


28 Eki 2024 Pzt 21:08 tarihinde Yinlong Huang <yinl...@ualberta.ca> şunu yazdı:

riad arefin

unread,
Nov 7, 2024, 7:34:14 PM11/7/24
to SWAT-CUP
Dear  Yinlong  and Sefa,

I found the same problem that you faced. It is not finishing after running the first iteration it stopped working. 
I am sending my documents could you please check it? 

NOTE: I developed the model from 1990 to 2023, warmup 3 years of observed data from 1993 to 2023, and other data like climatic data also from 1990 to 2023 for ARCSWAT. SWAT.EXE copy to the swat-cup file. However the SWATCUP "project folder" is in Drive instead of C drive where I develop my ArcSWAT project. 

Regards
-Riad-
SUFI2_extract_rch.def
SUFI2_swEdit.def
Screenshot 2024-11-07 182919.jpg
file.cio
observed_rch.txt
var_file_rch.txt
par_inf.txt
observed.txt
Absolute_SWAT_Values.txt
var_file_name.txt

CHAKKARALLA MAHAMMAD RAFI

unread,
Nov 7, 2024, 11:24:22 PM11/7/24
to SWAT-CUP
Dear raid
I noticed that the observation input format in your files is incorrect, which could be causing some discrepancies. 
The format should follow this structure:  

1 FLOW_OUT_1_1979 6.93
2 FLOW_OUT_2_1979 6.85
3 FLOW_OUT_3_1979 5.48
4 FLOW_OUT_4_1979 4.19

Reply all
Reply to author
Forward
0 new messages