visibility_proportion: Visibility Proportion

View source: R/visibility_proportion.R

visibility_proportionR Documentation

Visibility Proportion

Description

Function that calculates the proportion of visible area within a viewshed

Usage

visibility_proportion(
  observer,
  max_distance = 800,
  dsm_rast,
  dtm_rast,
  observer_height = 1.7,
  raster_res = NULL,
  plot = FALSE
)

Arguments

observer

object of class sf with one point; Starting location

max_distance

numeric; Buffer distance to calculate the viewshed

dsm_rast

object of class rast; rast of the DSM

dtm_rast

object of class rast; rast of the DTM

observer_height

numeric > 0; Height of the observer (e.g. 1.7 meters)

raster_res

optional; NULL or numeric > 0; Resolution that the viewshed raster should be aggregated to. Must be a multible of the dsm_rast resolution

plot

optional; Plot the intersect of the buffer around the observer location and the DSM (left DSM; right visibility raster)

Value

numeric; Proportion of visible area of the viewshed. Values range from 0 to 1


STBrinkmann/GVI documentation built on March 11, 2024, 3:39 p.m.