Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
METRo projects
metro
Commits
033c000c
Commit
033c000c
authored
Sep 16, 2009
by
Miguel Tremblay
Browse files
Add a comment explaining why there is a check on the number "0.01" in the Wind Speed combination.
parent
6807f1a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/frontend/executable_module/metro_preprocess_combine.py
View file @
033c000c
...
...
@@ -262,6 +262,8 @@ class Metro_preprocess_combine(Metro_preprocess):
fCurrentObs
=
npWSO
[
nLenWSO
-
1
]
fCurrentFor
=
npWS
[
nLenWSO
-
self
.
NTP
-
self
.
NTP2
]
if
fCurrentObs
<
fCurrentFor
:
# The value of 0.01 is arbitrary. It is to avoid a division
# by a value too near of zero.
if
fCurrentFor
<
0.01
:
fCurrentFor
=
1.0
if
fCurrentObs
==
0
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment