Skip to content

Commit

Permalink
Fixed the sum of surface runoff and PET
Browse files Browse the repository at this point in the history
By changing the calculation method for calculating time series
parameters, I inadvertently introduced a bug and the value of surface
runoff and potential ET were not being written in the Expert Statistics
file. Fixed that issue.
  • Loading branch information
mishranurag committed Apr 14, 2017
1 parent 9e183dd commit b03b7dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atcHspfSupport/atcHspfExpertSystemEXPPlus.vb
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ Public Class atcExpertSystem
Dim lValues() As Double = lDailyTSer.Values
'total volume always needed
'RWZSetArgs(lDailyTSer) 'Becky's addition Dec 9: this uses atcTimeseriesStatistics to calculate all the sums, bins needed below
pStats(1, lStatGroup, lSiteIndex) = lValueCollection.ItemByKey("Sum") 'Becky commented this out and used .GetValue instead
pStats(1, lStatGroup, lSiteIndex) = lDailyTSer.Attributes.GetDefinedValue("Sum").Value 'Becky commented this out and used .GetValue instead
'others?
If (lStatGroup = 1 Or lStatGroup = 2) Then 'full range of pStats desired
pStats(2, lStatGroup, lSiteIndex) = lValueCollection.ItemByKey("%Sum50") 'lDailyTSer.Attributes.GetValue("%Sum50") '50% low
Expand Down

0 comments on commit b03b7dc

Please sign in to comment.