Hi Steve,
That is the problem. PLAPS=0 but the precipitation in output.sub is not exactly the same as in pcp.pcp. It's not even consistent between subbasins, as shown below in the output.sub file.
You're right though, 0.48 is in my precipitation gauge file, not pcp.pcp. In pcp.pcp it is 000.5 since it was rounded when creating the SWAT files (so it shouldn't be 0.496 in output.sub when PLAPS=0, it should be 0.500).
Gauge elevation is from pcp.pcp, 1330 for this gauge.
I would also be surprised at the 12 and 1000 thing if the exact same issue wasn't reported by another user in a published paper. The fact that the days of precipitation numbers in .wgn have no influence on the outputs of the model (tested) is a clear indicator that SWAT reads the number of rainy days from elsewhere, or assumes a number (apparently 12).
Moreover when I set the elevations in the subbasin lower than the gauge and use PLAPS=20, precipitation in that sub is reduced to 0. This show that SWAT does try to to increase/reduce the precipitation based on elevation, but is off by orders of magnitude.
I'm not at liberty to share the data, unfortunately. The provider of the data was pretty clear that we can't share it externally. I can post the first few headings of each file, though:
pcp.pcp (I hid the coordinates, but the x's were numbers):
Station station1,
station2 ,
station3 ,
station4 ,
Lati xx.9 xx.8 xx.6 xx.6
Long xx.2 xx.4 xx.6 xx.0
Elev 378 972 1330 972
000050000.sub (all elevation bands set to 1430 for testing, but I get the same error regardless of what they are):
.sub file Subbasin: 5 8/5/2020 12:00:00 AM ArcSWAT 2012.10_2.19
42.914269 | SUB_KM : Subbasin area [km2]
Climate in subbasin
xx.808796 | LATITUDE : Latitude of subbasin [degrees]
1073.88 | ELEV : Elevation of subbasin [m]
3 | IRGAGE: precip gage data used in subbasin
3 | ITGAGE: temp gage data used in subbasin
1 | ISGAGE: solar radiation gage data used in subbasin
1 | IHGAGE: relative humidity gage data used in subbasin
3 | IWGAGE: wind speed gage data used in subbasin
000050000.wgn | WGNFILE: name of weather generator data file
1 | FCST_REG: Region number used to assign forecast data to the subbasin
Elevation Bands
| ELEVB: Elevation at center of elevation bands [m]
1430.0001430.0001430.0001430.0001430.000 0.000 0.000 0.000 0.000 0.000
| ELEVB_FR: Fraction of subbasin area within elevation band
0.148 0.252 0.258 0.219 0.116 0.000 0.000 0.000 0.000 0.000
| SNOEB: Initial snow water content in elevation band [mm]
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.000 | PLAPS : Precipitation lapse rate [mm/km]
0.000 | TLAPS : Temperature lapse rate [�C/km]
0.000 | SNO_SUB : Initial snow water content [mm]
output.sub (notice the bolded values, they are all from the same gauge, and PLAPS is still 0 in the .sub files):
SUB GIS MON AREAkm2 PRECIPmm SNOMELTmm PETmm
BIGSUB 1 0 1.69E+02 0.00E+00 0.00E+00 4.22E-01
BIGSUB 2 0 1.47E+02 0.00E+00 0.00E+00 4.21E-01
BIGSUB 3 0 1.17E+03 0.00E+00 0.00E+00 4.23E-01
BIGSUB 4 0 1.13E+03 0.00E+00 0.00E+00 0.00E+00
BIGSUB 5 0 1.43E+02 4.96E-01 0.00E+00 0.00E+00
BIGSUB 6 0 1.11E+03 0.00E+00 0.00E+00 0.00E+00
BIGSUB 7 0 1.78E+02 0.00E+00 0.00E+00 0.00E+00
BIGSUB 8 0 1.75E+02 4.86E-01 0.00E+00 0.00E+00
BIGSUB 9 0 1.48E+02 2.98E-01 0.00E+00 0.00E+00
BIGSUB 10 0 1.41E+02 0.00E+00 0.00E+00 0.00E+00
BIGSUB 11 0 1.91E+02 4.78E-01 0.00E+00 0.00E+00
BIGSUB 12 0 1.48E+02 4.98E-01 0.00E+00 0.00E+00
BIGSUB 13 0 1.53E+02 2.97E-01 0.00E+00 0.00E+00
BIGSUB 14 0 1.38E+03 0.00E+00 0.00E+00 0.00E+00
BIGSUB 15 0 1.12E+03 4.94E-01 0.00E+00 0.00E+00
BIGSUB 16 0 1.36E+03 4.99E-01 0.00E+00 0.00E+00
BIGSUB 17 0 1.25E+03 2.99E-01 0.00E+00 0.00E+00
BIGSUB 18 0 1.15E+02 2.98E-01 0.00E+00 0.00E+00
BIGSUB 19 0 1.41E+02 2.89E-01 0.00E+00 0.00E+00
BIGSUB 20 0 1.14E+01 4.87E-01 0.00E+00 0.00E+00
BIGSUB 21 0 1.15E+02 0.00E+00 0.00E+00 0.00E+00
BIGSUB 22 0 1.49E+01 0.00E+00 0.00E+00 4.25E-01
BIGSUB 23 0 1.48E+02 2.99E-01 0.00E+00 0.00E+00
BIGSUB 24 0 1.77E+02 2.99E-01 0.00E+00 0.00E+00
BIGSUB 25 0 1.26E+02 4.99E-01 0.00E+00 0.00E+00
BIGSUB 26 0 1.19E+02 5.00E-01 0.00E+00 0.00E+00
BIGSUB 27 0 1.12E+03 4.97E-01 0.00E+00 0.00E+00
BIGSUB 28 0 1.21E+02 4.63E-01 0.00E+00 0.00E+00
BIGSUB 29 0 1.55E+02 0.00E+00 0.00E+00 0.00E+00
BIGSUB 30 0 1.79E+01 0.00E+00 0.00E+00 0.00E+00
BIGSUB 31 0 1.26E+02 0.00E+00 0.00E+00 0.00E+00
BIGSUB 32 0 1.50E+02 0.00E+00 0.00E+00 0.00E+00
BIGSUB 33 0 1.26E+02 0.00E+00 0.00E+00 0.00E+00
BIGSUB 34 0 1.19E+02 0.00E+00 0.00E+00 0.00E+00
BIGSUB 35 0 1.26E+02 0.00E+00 0.00E+00 4.27E-01
BIGSUB 36 0 1.11E+03 0.00E+00 0.00E+00 4.25E-01
BIGSUB 37 0 1.11E+03 0.00E+00 0.00E+00 4.24E-01
BIGSUB 38 0 1.28E+02 0.00E+00 0.00E+00 4.24E-01
BIGSUB 39 0 1.16E+03 0.00E+00 0.00E+00 4.25E-01
BIGSUB 1 0 2.69E+02 1.99E-01 0.00E+00 4.06E-01
BIGSUB 2 0 2.47E+02 1.93E-01 0.00E+00 4.03E-01
BIGSUB 3 0 2.17E+03 1.98E-01 0.00E+00 4.07E-01
BIGSUB 4 0 2.13E+03 9.87E-02 0.00E+00 0.00E+00
BIGSUB 5 0 2.43E+02 5.96E-01 0.00E+00 0.00E+00
BIGSUB 6 0 2.11E+03 9.94E-02 0.00E+00 0.00E+00
BIGSUB 7 0 2.78E+02 9.61E-02 0.00E+00 0.00E+00
BIGSUB 8 0 2.75E+02 5.84E-01 0.00E+00 0.00E+00
BIGSUB 9 0 2.48E+02 0.00E+00 0.00E+00 0.00E+00
BIGSUB 10 0 2.41E+02 9.85E-02 0.00E+00 0.00E+00
BIGSUB 11 0 2.91E+02 5.74E-01 0.00E+00 0.00E+00
BIGSUB 12 0 2.48E+02 5.97E-01 0.00E+00 0.00E+00
BIGSUB 13 0 2.53E+02 0.00E+00 0.00E+00 0.00E+00
BIGSUB 14 0 2.38E+03 9.96E-02 0.00E+00 0.00E+00
BIGSUB 15 0 2.12E+03 5.93E-01 0.00E+00 0.00E+00
BIGSUB 16 0 2.36E+03 5.98E-01 0.00E+00 0.00E+00
BIGSUB 17 0 2.25E+03 0.00E+00 0.00E+00 0.00E+00
BIGSUB 18 0 2.15E+02 0.00E+00 0.00E+00 0.00E+00
BIGSUB 19 0 2.41E+02 0.00E+00 0.00E+00 0.00E+00
BIGSUB 20 0 2.14E+01 5.85E-01 0.00E+00 0.00E+00
BIGSUB 21 0 2.15E+02 9.96E-02 0.00E+00 0.00E+00
BIGSUB 22 0 2.49E+01 1.98E-01 0.00E+00 4.09E-01
BIGSUB 23 0 2.48E+02 0.00E+00 0.00E+00 0.00E+00
BIGSUB 24 0 2.77E+02 0.00E+00 0.00E+00 0.00E+00
BIGSUB 25 0 2.26E+02 5.99E-01 0.00E+00 0.00E+00
BIGSUB 26 0 2.19E+02 5.99E-01 0.00E+00 0.00E+00
BIGSUB 27 0 2.12E+03 5.96E-01 0.00E+00 0.00E+00
BIGSUB 28 0 2.21E+02 5.56E-01 0.00E+00 0.00E+00
BIGSUB 29 0 2.55E+02 9.92E-02 0.00E+00 0.00E+00
BIGSUB 30 0 2.79E+01 9.82E-02 0.00E+00 0.00E+00
BIGSUB 31 0 2.26E+02 9.91E-02 0.00E+00 0.00E+00
BIGSUB 32 0 2.50E+02 9.89E-02 0.00E+00 0.00E+00
BIGSUB 33 0 2.26E+02 9.81E-02 0.00E+00 0.00E+00
BIGSUB 34 0 2.19E+02 9.77E-02 0.00E+00 0.00E+00
BIGSUB 35 0 2.26E+02 2.00E-01 0.00E+00 4.12E-01
BIGSUB 36 0 2.11E+03 1.99E-01 0.00E+00 4.10E-01
BIGSUB 37 0 2.11E+03 2.00E-01 0.00E+00 4.09E-01
BIGSUB 38 0 2.28E+02 2.00E-01 0.00E+00 4.08E-01
BIGSUB 39 0 2.16E+03 1.99E-01 0.00E+00 4.09E-01
000050000.wgn (these values are nonsense, since I have not set up a wgen. And they are obviously not used, since changing them do not affect the outputs. I have tried changing both line 14 and the elevation listed).
.Wgn file Subbasin: 5 STATION NAME:Sample 8/5/2020 12:00:00 AM ArcSWAT 2012.10_2.19
LATITUDE = 33.65 LONGITUDE = -95.69
ELEV [m] = 179.80
RAIN_YRS = 83.00
11.90 13.90 18.80 23.60 27.60 32.30 34.80 34.90 31.40 25.70 18.40 13.10
-0.20 1.60 5.90 11.10 15.70 20.30 22.30 21.90 18.20 11.90 5.60 1.20
7.36 6.94 6.47 4.74 3.98 3.41 3.27 3.38 4.44 5.32 6.19 6.47
6.10 5.58 5.59 4.63 3.72 2.76 2.06 2.24 3.96 5.06 5.42 5.51
66.9 72.3 89.8 120.0 133.2 93.1 81.9 66.4 88.6 87.9 81.3 77.1
12.70 14.22 14.22 17.78 18.29 19.05 16.51 16.00 22.10 20.32 19.56 16.20
2.23 2.27 0.91 0.94 1.50 2.78 0.94 1.44 2.27 1.93 2.41 3.00
0.17 0.18 0.19 0.22 0.21 0.16 0.15 0.13 0.13 0.14 0.13 0.15
7.12 6.78 7.36 8.15 9.04 6.67 6.20 5.45 5.91 5.86 5.82 6.46
10.00 10.00 10.00 10.00 10.00 10.00 10.00 10.00 10.00 10.00 10.00 10.00
16.00 17.53 20.32 27.18 38.35 35.56 34.04 45.21 36.83 25.65 22.86 13.90
9.42 12.27 16.41 19.40 22.95 25.01 24.50 23.12 19.22 15.54 11.40 9.05
0.76 2.42 4.85 10.55 16.45 19.86 20.56 20.07 17.15 11.38 5.20 1.66
4.82 4.74 5.32 5.26 4.55 4.28 3.85 3.75 3.76 4.06 4.45 4.63