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

1
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 daniel.bowman@unc.edu

Examples

1
2
3
4
5
zonal.wind <- c(35.5, -2)
meridional.wind <- c(-5, 15)
winds <- MagnitudeAzimuth(zonal.wind, meridional.wind)
print(winds$magnitude)
print(winds$azimuth)