Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
76e3fec2
Commit
76e3fec2
authored
Oct 29, 2018
by
Purves, Murray
Browse files
Fixing wind speed conversion
parent
48e123ea
Pipeline
#16763
failed with stages
in 8 minutes and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
radixio/examples/radixsnd2arl.cc
View file @
76e3fec2
...
...
@@ -525,11 +525,11 @@ int main(int argc, char **argv)
// Write wind data
// Need to calculate wind u and v components from direction/speed
float
thisWindU
=
(
float
)(
toRadians
(
cos
(
90.0
-
(
inputW
Dir
s
[
level
]
-
180.0
))
)
*
inputW
Spd
s
[
level
]
*
0.51444444444
);
(
inputW
Spd
s
[
level
]
*
0.5144444444
)
*
sin
(
toRadians
(
fmod
((
inputW
Dir
s
[
level
]
+
180.0
),
360.0
))
);
float
thisWindV
=
(
float
)(
toRadians
(
sin
(
90.0
-
(
inputW
Dir
s
[
level
]
-
180.0
))
)
*
inputW
Spd
s
[
level
]
*
0.51444444444
);
(
inputW
Spd
s
[
level
]
*
0.5144444444
)
*
cos
(
toRadians
(
fmod
((
inputW
Dir
s
[
level
]
+
180.0
),
360.0
))
);
std
::
cout
<<
" Initial wspd = "
<<
inputWSpds
[
level
]
<<
" knots, wdir: "
<<
inputWDirs
[
level
]
<<
" degrees"
<<
std
::
endl
;
...
...
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