| wind_from_uv | R Documentation |
Bin ERA5-style eastward (u) and northward (v) wind
components into the ws / wd / probab table that
windata_format() and genetic_algorithm() expect.
Direction is meteorological (where the wind comes from; 0 = north).
Each direction bin gets the mean speed and the hour share.
wind_from_uv(u, v, dir_width = 30)
u |
Eastward wind component (m/s). Same length as |
v |
Northward wind component (m/s). |
dir_width |
Width of direction bins in degrees. Default is 30. |
A data.frame with ws, wd, probab (probabilities sum to 100).
Other Helper Functions:
get_grids(),
grid_area(),
hexa_area(),
isSpatial(),
permutations(),
read_power_curve(),
splitAt(),
wind_from_series(),
windata_format()
set.seed(1)
u <- rnorm(200, 2)
v <- rnorm(200, -3)
wind_from_uv(u, v, dir_width = 30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.