uv2wdws | R Documentation |
this function converts u and v components to wind direction and wind speed
uv2wdws(u, v)
u |
a vector of u components |
v |
a vector of v components |
a matrix
Tim Appelhans https://raw.githubusercontent.com/environmentalinformatics-marburg/Rsenal/master/R/uv2wdws.R
wdws2uv
set.seed(123) wd <- as.integer(rnorm(10, 180, 90)) set.seed(123) ws <- rnorm(10, 4, 1) ## convert to u and v wdws2uv(wd, ws) ## convert back uv <- wdws2uv(wd, ws) uv2wdws(uv[, 1], uv[, 2])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.