GetDirInfo {wflo}R Documentation

Returns average wind direction and direction standard deviation for a turbine's location.

Description

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.

Usage

GetDirInfo(x, y, Dirs, SDs)

Arguments

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 FarmData will be used as this matrix.

SDs

a matrix containing average yearly wind direction standard deviations. Usually, the fourth element of the list object FarmData will be used as this matrix.

Value

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'.

Author(s)

Carsten Croonenbroeck

See Also

Profit to see where to use GetDirInfo, Yield for a similar function for adjusted yield. See FarmVars for the data object.

Examples

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.

[Package wflo version 1.9 Index]