Commit e912ee83 authored by Purves, Murray's avatar Purves, Murray
Browse files

WIP adding wind speed/dir conversion output

parent 26596ba0
Pipeline #16713 failed with stages
in 14 minutes and 19 seconds
......@@ -391,6 +391,10 @@ int main(int argc, char **argv)
(float)(acos(90.0 - (inputWDirs[level] - 180.0)) * inputWSpds[level]);
float thisWindV =
(float)(asin(90.0 - (inputWDirs[level] - 180.0)) * inputWSpds[level]);
std::cout << " Initial wspd = " << inputWSpds[level]
<< ", wdir: " << inputWDirs[level] << std::endl;
std::cout << " Converted wind components: u = " << thisWindU
<< ", v = " << thisWindV << std::endl;
{
thisRecordHeader.kvar = "UWND";
thisRecordHeader.var1 = thisWindU;
......
Markdown is supported
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