GetDirInfo | R Documentation |
For a turbine's location represented by x
and y
, looks up the wind direction from the matrix Dirs
and the corresponding standard deviation from matrix SDs
. Internally transforms coordinates of x
and y
from problem space (usually unit square) to the matrix space of Dirs
and SDs
, respectively.
GetDirInfo(x, y, Dirs, SDs)
x |
must be a single value containing the 'x' location of a turbine in problem space. |
y |
must be a single value containing the 'y' location of a turbine in problem space. |
Dirs |
a matrix containing average yearly wind directions. Usually, the third element of the list object |
SDs |
a matrix containing average yearly wind direction standard deviations. Usually, the fourth element of the list object |
GetDirInfo
returns a vector of two elements, the first being the average wind direction in degrees and the second being the corresponding standard deviation. Note that degrees are meant in the arithmetic degrees system (0° being east, ascending counterclockwise). To transform into an azimuth system (0° being north, ascending clockwise), use function Geo2Ari
. Also note that wind directions are meant to denote 'where the wind is going to' rather than 'where the wind is coming from'.
Carsten Croonenbroeck
Profit
to see where to use GetDirInfo
, Yield
for a similar function for adjusted yield. See FarmVars
for the data object.
Dirs <- FarmData[[3]][e$FarmVars$StartPoint:e$FarmVars$EndPoint, e$FarmVars$StartPoint:e$FarmVars$EndPoint] SDs <- FarmData[[4]][e$FarmVars$StartPoint:e$FarmVars$EndPoint, e$FarmVars$StartPoint:e$FarmVars$EndPoint] GetDirInfo(0.5, 0.7, Dirs, SDs) ## Returns wind direction and standard deviation for the given location ## and provided the matrices given.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.