viewshed: Viewshed

View source: R/viewshed.R

viewshedR Documentation

Viewshed

Description

Computes a binary viewshed of a point on a Digital Surface Model (DSM). The observer height is based on the heigth of a Digital Terrain Model (DTM).

Usage

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

Arguments

observer

object of class sf with one point; Starting location

dsm_rast

object of class rast; rast of the DSM

dtm_rast

object of class rast; rast of the DTM

max_distance

numeric; Buffer distance to calculate the viewshed

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

object of class rast


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