Skip to content

Commit

Permalink
HSPEXP/HSPFOutputReports.vb -- fix for count of missing values in out…
Browse files Browse the repository at this point in the history
…put reports
  • Loading branch information
PaulDudaRESPEC committed Feb 14, 2019
1 parent 213f349 commit f0ea025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HSPEXP/HSPFOutputReports.vb
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ Module HSPFOutputReports
Dim PercentMissingObservedData As Double = 0.0

If lObsTSerInches.Attributes.GetDefinedValue("Count Missing").Value > 0 Then
PercentMissingObservedData = lObsTSerInches.Attributes.GetDefinedValue("Count Missing").Value * 100 / lObsTSerInches.Attributes.GetDefinedValue("Count").Value
PercentMissingObservedData = lObsTSerInches.Attributes.GetDefinedValue("Count Missing").Value * 100 / lObsTSerInches.Values.Count
For i As Integer = 1 To lObsTSerInches.numValues
If Double.IsNaN(lObsTSerInches.Value(i)) Then
lSimTSerInches.Value(i) = Double.NaN
Expand Down

0 comments on commit f0ea025

Please sign in to comment.