maxpos_on_line: applies a line to a raster and returns the position of the...

View source: R/karim.R

maxpos_on_lineR Documentation

applies a line to a raster and returns the position of the maximum value

Description

applies a line to a raster and returns the position of the maximum value

Usage

maxpos_on_line(dem, line)

Arguments

dem

raster object

line

sp object

Examples

## Not run: 
## load DEM/DSM 
dem <- raster::raster(system.file("extdata", "mrbiko.tif", package = "uavRmp"))

## generate extraction line object
line <- sp_line(c(8.66821,8.68212),c(50.83939,50.83267),ID="Highest Position",runDir=runDir)
## extract highest position
maxpos_on_line(dem,line)  

## End(Not run)

uavRmp documentation built on Feb. 16, 2023, 7:03 p.m.