Learn R Programming

wflo (version 1.9)

Height: Returns the elevation of a turbine's location.

Description

For a turbine's location represented by x and y, looks up the elevation from the matrix Elev. Internally transforms coordinates of x and y from problem space (usually unit square) to the matrix space of Elev.

Usage

Height(x, y, Elev)

Value

Height returns a single value, the elevation in meters.

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.

Elev

a matrix containing heights. Usually, the fifth element of the list object FarmData will be used as this matrix.

Author

Carsten Croonenbroeck

Details

Height is a convenience function for looking up heights as required e.g. for a partial Jensen wake model, independent from the actual size of the area under investigation.

See Also

Profit to see where to use Height. See FarmData for the data set.

Examples

Run this code
## Returns adjusted yield for the given location.
P <- c(0.5868695, 0.9722714)
Height(P[1], P[2], FarmData[[5]][e$FarmVars$StartPoint:e$FarmVars$EndPoint,
    e$FarmVars$StartPoint:e$FarmVars$EndPoint])

Run the code above in your browser using DataLab