cart2polar: Function to convert from cartesian coordinates to polar...

Description Usage Arguments Value Author(s) Examples

Description

The Function takes the u and v vectors of e.g. wind data in WMO convention and converts it into polar coordinates usable for polar plots e.g. windroses. NOTE: the polar coordinates are exactly vice versa in direction, to be usable for a windrose plot. See windrose

Usage

1
cart2polar(u, v)

Arguments

u

The Vector in u-Direction (WMO convention is East)

v

The Vector in v-Direction (WMO convention is North)

Value

You get a data.frame with two columns. First column named "r" is the Modulus (combined Vectorlength), second column named "theta" is the Argument(degree, where v is 0 deg and u is 90 deg)

Author(s)

Carsten Vick (carsten.vick@campus.tu-berlin.de)

Examples

1
2
3
data(AWS_fluxes)
wind_polar <- cart2polar(u = AWS_fluxes$u_Avg, v = AWS_fluxes$v_Avg)
windrose(windspeed = wind_polar$r, winddir = wind_polar$theta)

ca-vi/Climatology_Package documentation built on May 13, 2019, 10:37 a.m.