Commit e5cade12 authored by Miguel Tremblay's avatar Miguel Tremblay
Browse files

Update to avoid a division by something really really near zero in the...

Update to avoid a division by something really really near zero in the combination of the observed and forecast wind.

This is supposed to correct the bugs #14186:
http://gna.org/bugs/?14186


parent 738f20cc
......@@ -262,7 +262,7 @@ class Metro_preprocess_combine(Metro_preprocess):
fCurrentObs = npWSO[nLenWSO-1]
fCurrentFor = npWS[nLenWSO-self.NTP-self.NTP2]
if fCurrentObs < fCurrentFor:
if fCurrentFor == 0:
if fCurrentFor < 0.01:
fCurrentFor = 1.0
if fCurrentObs == 0:
fCurrentObs = 1.0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment