MagnitudeAzimuth: Convert zonal-meridional wind speeds to magnitude/azimuth.

Description Usage Arguments Value Author(s) Examples

View source: R/RNomadsTools.R

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 [email protected]

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)

rNOMADS documentation built on Nov. 17, 2017, 7:13 a.m.