MagnitudeAzimuth | R Documentation |
Given zonal (East-West) and meridional (North-South) wind speeds, calculate magnitude of wind vector and azimuth from north, in degrees.
MagnitudeAzimuth(zonal.wind, meridional.wind)
zonal.wind |
A vector of zonal (East-West) winds, west negative. |
meridional.wind |
A vector of meridional (North-South) winds, south negative. |
winds$magnitude |
Magnitude of wind vector. |
winds$azimuth |
Azimuth of wind vector in degrees from North |
Daniel C. Bowman danny.c.bowman@gmail.com
zonal.wind <- c(35.5, -2)
meridional.wind <- c(-5, 15)
winds <- MagnitudeAzimuth(zonal.wind, meridional.wind)
print(winds$magnitude)
print(winds$azimuth)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.