View source: R/wind_functions2.R
| wind.mean | R Documentation |
wind.mean computes the mean (average) wind speed and wind direction of a time series dataset of winds of the same region. Summaries of time series are not trivial to compute. We compute the arithmetic mean for the wind speed. The direction as the circular mean, see https://en.wikipedia.org/wiki/Circular_mean for more details. The U and V components are afterwards transformed from these values.
wind.mean(x)
x |
An object of class |
An object of classes rWind and data.frame, with one row per
grid cell and columns time, lat, lon, ugrd10m, vgrd10m, dir,
and speed. Speed is the arithmetic mean across time steps (m/s), and
direction is the circular mean (degrees clockwise from north, towards
where the wind moves). U and V (m/s) are derived from these mean values.
Coordinates are in degrees, and time records the first time step (UTC).
For large time series, it could take a while.
Javier Fernández-López (jflopez.bio@gmail.com)
https://en.wikipedia.org/wiki/Cross_product
wind.dl
data(wind.series)
wind_average <- wind.mean(wind.series)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.