powered by
Transform U and V components in direction and speed and vice versa
uv2ds(u, v)ds2uv(d, s)
ds2uv(d, s)
U component.
direction (degrees).
speed (m/s).
"uv2ds" returns a matrix with direction and speed values
"ds2uv" returns a matrix with U and V values
wind.mean, wind2raster
wind.mean
wind2raster
# NOT RUN { (ds <- uv2ds(c(1, 1, 3, 1), c(1, 1.7, 3, 1))) ds2uv(ds[, 1], ds[, 2]) # }
Run the code above in your browser using DataLab