MagnitudeAzimuth {rNOMADS} | R Documentation |
Convert zonal-meridional wind speeds to magnitude/azimuth.
Description
Given zonal (East-West) and meridional (North-South) wind speeds, calculate magnitude of wind vector and azimuth from north, in degrees.
Usage
MagnitudeAzimuth(zonal.wind, meridional.wind)
Arguments
zonal.wind |
A vector of zonal (East-West) winds, west negative. |
meridional.wind |
A vector of meridional (North-South) winds, south negative. |
Value
winds$magnitude |
Magnitude of wind vector. |
winds$azimuth |
Azimuth of wind vector in degrees from North |
Author(s)
Daniel C. Bowman danny.c.bowman@gmail.com
Examples
zonal.wind <- c(35.5, -2)
meridional.wind <- c(-5, 15)
winds <- MagnitudeAzimuth(zonal.wind, meridional.wind)
print(winds$magnitude)
print(winds$azimuth)
[Package rNOMADS version 2.5.3 Index]