getProportionAreaSearched: Create proportion of area searched table from spatial data

View source: R/getProportionAreaSearched.R

getProportionAreaSearchedR Documentation

Create proportion of area searched table from spatial data

Description

Calculate proportion of area searched around wind turbine based on turbine location data and polygons of search area.

Usage

getProportionAreaSearched(
  turbinePoints,
  turbineName,
  turbinePlots,
  turbineMastRadius,
  maxDistance
)

Arguments

turbinePoints

Spatial points object with with data frame indicating turbine names

turbineName

Character, indicating the variable name for the turbine names in turbinePoints and plot names in turbinePlots

turbinePlots

Spatial polygon objects indicating the search area around the turbine points

turbineMastRadius

Integer of length 1. radius of the turbine mast

maxDistance

Integer, indicating how far from the turbine that searches occurred

Details

The sf package is used to calculate overlapping areas between the searched area turbinePlots and one unit annulus around the turbinePoints. The annuli increase out to a distance of maxDistance.

Caution, the function does some basic checks on the spatial objects but it is assumed that the points and polygons do not have any boundary, geometry, or other issues.

Value

Data frame of proportion of area searched for each annulus around each turbine point. distanceFromTurbine column represents outer radius of each annulus.

Examples



data(turbineSpatial)

propSearch <- getProportionAreaSearched(turbinePoints=turbineSpatial$turbinePoints,
turbineName='turbName',turbinePlots=turbineSpatial$turbinePlots,
 turbineMastRadius=2,maxDistance=10)



windAC documentation built on March 31, 2023, 9:30 p.m.