Calibration Error (after succesful initial run)

147 views
Skip to first unread message

Vera S.

unread,
May 20, 2021, 5:18:56 PM5/20/21
to SWAT-CUP

Dear all,

I am stuck with this error for a long time now so I am very frustrated that I can't start the actual calibration. (I don't have much time left for my thesis so I would be very greatful for any hint!)
The error comes after the postprocessing step of my calibration. I followed the YT Tutorials and the manual and searched for mistakes in my input files, but I didn't find the solution. I'm using the public domain version 5.1.6.2, does the old version make troubles by any chance or am I doing something completely wrong?

The input files are below, because uploading didn't work.

Have a nice day,
Vera 

par_inf.txt

1  : Number of Parameters (the program only reads the first 4 parameters or any number indicated here)

50  : number of simulations


r__CN2.mgt               -0.3   0.0

...

extract_rch.def

output.rch     : swat output file name

1              : number of variables to get

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

8              : total number of reaches (subbasins) in the project 

1              : number of reaches (subbasins) to get for the first variable

1        : reach (subbasin) numbers for the first variable

2000           : beginning year of simulation not including the warm up period

2010           : end year of simulation

2              : time step (1=daily, 2=monthly, 3=yearly)

 

observed_rch.txt

 1     : number of observed variables

 FLOW_OUT_1   : this is the name of the variable and the subbasin number to be included in the objective function

132   : number of data points for this variable as it follows below. First column is a sequential number from beginning of the simulation, second column is variable name and date (format arbitrary), third column is variable value.

 1     Flow_Out_1_2000-01-00   0

2     Flow_Out_1_2000-02-00   0

3     Flow_Out_1_2000-03-00   0

....

131   Flow_Out_1_2010-11-00   1.710884

132   Flow_Out_1_2010-12-00   0.481748

 

observed.txt

 1     : number of observed variables

5     : Objective function type, 1=mult,2=sum,3=r2,4=chi2,5=NS,6=br2,7=ssqr,8=PBIAS,9=KGE,10=RSR,11=MNS

0.5   : min value of objective function threshold for the behavioral solutions

1     : if objective function is 11=MNS (modified NS),indicate the power, p.

  

FLOW_OUT_1   : this is the name of the variable and the subbasin number to be included in the objective function

1     : weight of the variable in the objective function

-1    : Dynamic flow separation. Not considered if -1. If 1, then values should be added in the forth column below after observations

-1    : constant flow separation, threshold value. (not considered if -1)

1     : if constant separation of signal is considered, this is weight of the smaller values in the objective function

1     : if constant separation of signal is considered, this is weight of the larger values in the objective function

10    : percentage of measurement error

132   : number of data points for this variable as it follows below. First column is a sequential number from beginning of the simulation, second column is variable name and date (format arbitrary), third column is variable value.

 

1     Flow_Out_1_2000-01-00   0

2     Flow_Out_1_2000-02-00   0

3     Flow_Out_1_2000-03-00   0

...

131   Flow_Out_1_2010-11-00   1.710884

132   Flow_Out_1_2010-12-00   0.481748

 

file.cio

Master Watershed File: file.cio

Project Description:

General Input/Output section (file.cio):

3/27/2021 12:00:00 AM ARCGIS-SWAT interface AV

 General Information/Watershed Configuration:

fig.fig

              14    | NBYR : Number of years simulated

            1997    | IYR : Beginning year of simulation

               1    | IDAF : Beginning julian day of simulation

             365    | IDAL : Ending julian day of simulation

...

Output Information:

               0    | IPRINT: print code (month, day, year)

               3    | NYSKIP: number of years to skip output printing/summarization

               0    | ILOG: streamflow print code: 1=print log of streamflow

               0    | IPRP: print code for output.pst file: 1= print pesticide output

...

var_file_rch.txt

 FLOW_OUT_1.txt


SUFI2_swEdit.def

 1        : starting simulation number

50      : ending simulation number

Error.JPG

2w2e

unread,
May 21, 2021, 6:03:16 AM5/21/21
to SWAT-CUP
Hi,
It would be best to upload the entire files.

Vera S.

unread,
May 21, 2021, 3:16:22 PM5/21/21
to SWAT-CUP
par_inf.txt
var_file_rch.txt
observed_rch.txt
observed.txt

Vera S.

unread,
May 21, 2021, 3:28:54 PM5/21/21
to SWAT-CUP
Here the files (all as text format). Thanks in advance!

SUFI2_swEdit.def.txt
file.cio.txt
SUFI2_extract_rch.def.txt

2w2e

unread,
May 22, 2021, 11:06:37 AM5/22/21
to SWAT-CUP
The files are correct. Please see the file SUFI2.OUT/ FLOW_OUT_1.txt and make sure all 50 simulations are correctly there or not.  

Vera S.

unread,
May 22, 2021, 3:03:12 PM5/22/21
to SWAT-CUP
There are three simulations 1, which I don't understand. The rest is there normally. Thanks for Your quick help!
FLOW_OUT_1.txt

Karim Abbaspour

unread,
May 23, 2021, 5:30:36 AM5/23/21
to swat...@googlegroups.com
That means you didn’t start the iteration from pre processing. Should always do that. Now, just delete the unwanted ones from the beginning.
--
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/Yg2zGzpJxV0/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/4067af83-5c6d-4d74-acab-1525f28632f2n%40googlegroups.com.
<FLOW_OUT_1.txt>

Vera S.

unread,
May 24, 2021, 4:03:32 PM5/24/21
to SWAT-CUP
Ohh I see my mistake now, I always hit the pre-processing button and thought I did it but I entered "No" when the question came up, if I want to delete the Flow Out file. I didn't understand that this step is important. It works fine now, thank You so much - You are my hero! 
Reply all
Reply to author
Forward
0 new messages