wind_vector_convert {puff} | R Documentation |
Convert between (ws, wd) and (u,v)
Description
This function converts between coordinate systems by changing from degrees to radians
Usage
wind_vector_convert(wind_speeds,wind_directions)
Arguments
wind_speeds |
A list of float values of wind speeds in m/s at each time stamp |
wind_directions |
A list of float values of wind directions in degrees at each time stamp following the conventional definition: 0 -> wind blowing from North, 90 -> E, 180 -> S, 270 -> W |
Value
Quantities corresponding to the conversion direction
Examples
out <- wind_vector_convert(c(5, 10), c(0, 90))
[Package puff version 0.1.0 Index]