Height {wflo}R Documentation

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)

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.

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.

Value

Height returns a single value, the elevation in meters.

Author(s)

Carsten Croonenbroeck

See Also

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

Examples

## 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])

[Package wflo version 1.9 Index]