Description Usage Arguments Value Author(s) Examples
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
1 | cart2polar(u, v)
|
u |
The Vector in u-Direction (WMO convention is East) |
v |
The Vector in v-Direction (WMO convention is North) |
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)
Carsten Vick (carsten.vick@campus.tu-berlin.de)
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.