NO observations reach extract has stopped working

354 views
Skip to first unread message

Olkeba Tolessa

unread,
Apr 22, 2016, 5:30:52 PM4/22/16
to swat...@googlegroups.com, Abbaspour, Karim
Dear SWAT-CUP users and Dr. Abbaspour,

After calibrating and validating the SWAT model using SUFI2 for streamflow simulation, I have just started working on climate change impact assessment.

For the climate change scenarios, I wanted to run some iterations (e.g., 500) and extract simulation outputs for various scenarios using the NO observations executable files of SUFI2. But I always get the attached error message stating "extract_rch_NO_Obs.exe has stopped working". At the bottom of the attached file, I also see 'std :: bad_alloc' message that I guess related to bad allocation. I also checked 'Echo files' for clues but echo_extract_rch_No_Obs file was not there.

Could someone help me what is the cause of such problem or where did I go wrong?

Thank you in advance,
Olkeba

SUFI2_error_message.docx

Olkeba Tolessa

unread,
Apr 23, 2016, 10:52:26 AM4/23/16
to Abbaspour, Karim, swat...@googlegroups.com
​Yes, I'm extracting from reservoir output too and that error is resolved by renaming the .def file to what the tool is looking for but the reach extract issue is still there.

Thanks,
Olkeba

On Sat, Apr 23, 2016 at 3:34 AM, Abbaspour, Karim <Karim.A...@eawag.ch> wrote:

It says extract_res_no_obs.def does not exist. Are you extracting from reservoir output? Do you have that file?

Karim

Olkeba Tolessa

unread,
Apr 25, 2016, 7:13:35 PM4/25/16
to Abbaspour, Karim, swat...@googlegroups.com
Dear Karim,

I figured out at least where is the problem of extracting simulation outputs for NO observations from output.rch. The error happens when I use parallel processing but goes away when I run without using the parallel processing option, which is strange for me. I believe it should not be related to this but I still don't know what is the cause for this error.

After I passed this stage, I encountered another problem. While the reservoir outputs for three variables that I defined are correctly extracted from output.rsv, the tool is not correctly extracting the outputs for three different reaches from output.rch file. Out of three, it only extracted for the first variable name that I provided in "extract_rch_No_Obs.def" file (please see the attached file). When I also checked the echo files, I see that the second and third variable names are replaced by the first name but combined with the correct reach number (please also see the attached echo file, lines 29-31 ). This caused problem on post-processing run for 95PPU calculation (95ppu_NO_Obs.def) since the second and third variable names for the other two reaches are not extracted (please see the attached screen shot). However, it correctly ran when I only defined one name and set one for the number of subbasins to get the first variable.

Could you please help me with the cause of this problem?

Best regards,
Olkeba

On Sat, Apr 23, 2016 at 3:34 AM, Abbaspour, Karim <Karim.A...@eawag.ch> wrote:

It says extract_res_no_obs.def does not exist. Are you extracting from reservoir output? Do you have that file?

Karim

 

 

 

 

From: Olkeba Tolessa [mailto:olkeb...@gmail.com]
Sent: Friday, April 22, 2016 11:31 PM
To: swat...@googlegroups.com; Abbaspour, Karim
Subject: NO observations reach extract has stopped working

 

Dear SWAT-CUP users and Dr. Abbaspour,

95ppu_No_Obs.def
echo_extract_rch_No_obs.txt
extract_rch_No_Obs.def
SUFI2_error2_message.docx

Abbaspour, Karim

unread,
Apr 26, 2016, 6:27:16 AM4/26/16
to Olkeba Tolessa, swat...@googlegroups.com

SUFI2          : SWAT-CUP program: SUFI2, GLUE, ParaSol, PSO, MCMC

output.rch     : swat output file name

            : number of variables to get (such as: discharge, sediment, ET etc.)

7              : variable column number(s) in the swat output file (as many as the number above)

KHNL_flow  Nur2_flow  KLHK_flow       :Names of variables

 

 

In the extract_rch_No_Obs.def file you say you have 1 variable and then you give the names of three variables.  You should only give KHNL_flow

 

 

3             : number of subbasins to get for the first variable

7 19 25          : subbasin numbers for the first variable. Write "All" if equal to th

 

 

Here the program will create: KHNL_flow_7, KHNL_flow_19, and KHNL_flow_25  automatically.

Olkeba Tolessa

unread,
Apr 26, 2016, 2:44:11 PM4/26/16
to Abbaspour, Karim, swat...@googlegroups.com
Thank you Karim. It is working now.

Best,
Olkeba

chantal

unread,
Jun 24, 2016, 7:55:28 AM6/24/16
to SWAT-CUP, Karim.A...@eawag.ch
I Have the same problem, I added printscreens of my 95PPU_no_obs and extract_rch_no_obs.def. 
The files of my objective function are both empty, is that oke?

extract_rch_no_obs.PNG
95PPU_no_obs.PNG
Reply all
Reply to author
Forward
0 new messages