Error in SWAT-CUP simulation ?

141 views
Skip to first unread message

Abdelhak ALLEM

unread,
Oct 31, 2024, 5:02:26 AMOct 31
to SWAT-CUP
Hi dear user groups,
Please, how do I resolve the subject error message ?erreur.png

Yinlong Huang

unread,
Oct 31, 2024, 12:24:14 PMOct 31
to swat...@googlegroups.com
Hi Abdelhak,

I never had this problem before so I'm not sure what's the issue, but since the error message says you have problem in simulation number 2 in variable file 1, can you upload the following files?

SUFI2_extract_rch.def, observed.txt, observed_rch.txt, var_file_name.txt, var_file_rch.txt and file.cio, 

Abdelhak ALLEM <abdelha...@gmail.com> 于2024年10月31日周四 03:02写道:
Hi dear user groups,
Please, how do I resolve the subject error message ?erreur.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.
To view this discussion visit https://groups.google.com/d/msgid/swat-cup/00c9f128-fd65-49e8-b272-32ca5eaa051dn%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

Abdelhak ALLEM

unread,
Oct 31, 2024, 1:18:04 PMOct 31
to swat...@googlegroups.com
Hi,
Here are the requested files

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/__pmxDg_p-c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swat-cup+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/swat-cup/CAGVsowQFchYVNrgG2c36_bZ7%3D683dLcJGHhgJj743FgRScx9WA%40mail.gmail.com.


--
◆◆• • •◆◆• • •◆◆• • • • •◆◆• • • •◆◆• • •◆◆• • •◆◆
 Abdelhak ALLEM 
PhD student
Department of Hydraulic
University of Djillali Liabes Sidi Bel Abbes, Algeria
Phone: +213 (0) 
672 - 335 - 426
◆◆• • •◆◆• • •◆◆• • • • •◆◆• • • •◆◆• • •◆◆• • •◆◆
var_file_rch.txt.txt
var_file_name.txt.txt
File.cio.txt
SUFI2_extract_rch.def.png
observed_rch.txt.txt
observed.txt.txt

Yinlong Huang

unread,
Oct 31, 2024, 1:55:49 PMOct 31
to swat...@googlegroups.com
Hi Abdelhak, 

A few things here to notice:

1. I noticed that your end year is 1999, and 1999 is not a leap year, so in your file.cio, ending Julian day of simulation should be 365, not 366. But meanwhile, your observed data seems to ends in August 1999, and because I don't know if your model did end at August 1999 or it ends at the end of 1999 and you just don't have observed data, you need to modify your ending julian day in file.cio. 

2. When you prepare your observed_rch.txt and observed.txt file, make sure your observation starting time excludes the warm up period. In your SUFI1_extract_rch.def file, your extraction starts at 1983, and you skipped first 2 years based on your file.cio. In that case, your time series in observed_rch.txt and observed.txt should start from Jan-1983, not Jan-1981. So you need to delete the first 2 years of observed data, and rearrange your ID (instead of 1 for 1981-1, use 1 for 1983-1). 

These are the problems based on the file you provided. But if there's still error message then there might be some other problems. But just try it out first.

Abdelhak ALLEM <abdelha...@gmail.com> 于2024年10月31日周四 11:18写道:

Abdelhak ALLEM

unread,
Oct 31, 2024, 2:21:27 PMOct 31
to swat...@googlegroups.com
Dear Yinlong ,
I did all these steps and got yet another error.

error 2.png

Yinlong Huang

unread,
Oct 31, 2024, 2:52:54 PMOct 31
to swat...@googlegroups.com
Hi Abdelhak,

This is a common error message regarding your climate data, and it's not just pcp1.pcp file that would have this problem, but also would happen to tmp1.tmp, slr.slr, wnd.wnd and hmd.hmd. For now, please send the pcp1.pcp file and I'll confirm if you are having the issue that I thought it was.

Abdelhak ALLEM <abdelha...@gmail.com> 于2024年10月31日周四 12:21写道:

Abdelhak ALLEM

unread,
Oct 31, 2024, 2:55:21 PMOct 31
to swat...@googlegroups.com
pcp1.pcp

Yinlong Huang

unread,
Oct 31, 2024, 3:10:41 PMOct 31
to swat...@googlegroups.com
If you take a look at the pcp1.pcp file, you'll see that there are some -099.0, and it's causing an extra digit so that this section is not aligned with other lines, in order to fix this, for pcp1.pcp file, replace -099.0 with -99.0. If this message occurs for slr.slr, hmd.hmd and wnd.wnd, replace "-0099.000" with "-0099.00". All of these modification are meant to make the lines in these files aligned.
image.png

Abdelhak ALLEM <abdelha...@gmail.com> 于2024年10月31日周四 12:55写道:

Abdelhak ALLEM

unread,
Oct 31, 2024, 3:25:59 PMOct 31
to swat...@googlegroups.com
pcp1.png
I replace -099.0 with -99.0, but I faced the same error

Yinlong Huang

unread,
Oct 31, 2024, 3:27:04 PMOct 31
to swat...@googlegroups.com
Can you screenshot the error message? 

Abdelhak ALLEM <abdelha...@gmail.com> 于2024年10月31日周四 13:25写道:

Abdelhak ALLEM

unread,
Oct 31, 2024, 3:29:22 PMOct 31
to swat...@googlegroups.com

Yinlong Huang

unread,
Oct 31, 2024, 3:31:00 PMOct 31
to swat...@googlegroups.com
Ok please send me your pcp1.pcp again (after your modification)

Abdelhak ALLEM <abdelha...@gmail.com> 于2024年10月31日周四 13:29写道:

Abdelhak ALLEM

unread,
Oct 31, 2024, 3:34:41 PMOct 31
to swat...@googlegroups.com
pcp1.pcp

Sushma Poudel

unread,
Oct 31, 2024, 3:40:15 PMOct 31
to swat...@googlegroups.com
Hi,
I believe the error message you are encountering may be due to incorrect data formatting, despite using -99 to indicate missing data. This could lead to the file becoming unreadable at some point, as seen in the screenshot you provided. Make sure that your input files adhere to the required format outlined in the documents provided.

Hope this helps.

Best,



--
Sushma Poudel
Visiting Graduate Researcher
University of Virginia, USA
M.Sc. Watershed Management
Institute of Forestry, Tribhuvan University, Nepal

Yinlong Huang

unread,
Oct 31, 2024, 3:48:19 PMOct 31
to swat...@googlegroups.com
In that case I'm not really sure why because my file has exactly the same format and I didn't get error message.

image.png

Abdelhak ALLEM <abdelha...@gmail.com> 于2024年10月31日周四 13:34写道:

Abdelhak ALLEM

unread,
Oct 31, 2024, 3:58:55 PMOct 31
to swat...@googlegroups.com
Okay, thank you very much, I'll try to create the WGN file again, and replace the values -999 with -99 and see the result.

Sefa Nur Yeşilyurt

unread,
Nov 1, 2024, 5:16:33 PMNov 1
to swat...@googlegroups.com

Hello, Could you check the variable values ​​in your files? If they are not the same, that might be why you are getting an error. Just an idea considering the errors I got before...


31 Eki 2024 Per 12:02 tarihinde Abdelhak ALLEM <abdelha...@gmail.com> şunu yazdı:
Hi dear user groups,
Please, how do I resolve the subject error message ?erreur.png

--
Reply all
Reply to author
Forward
0 new messages