vegInd_RGB: Calculate RGB indices

Description Usage Arguments Details Value Author(s) References Examples

View source: R/vegInd_RGB.R

Description

computes several indices based on RGB bands

Usage

1
vegInd_RGB(rgb, red = NULL, green = NULL, blue = NULL, indlist = "all")

Arguments

rgb

a RasterStack with RGB bands

red

the band/layer number of band 'red'

green

the band/layer number of band 'green'

blue

the band/layer number of band 'blue'

indlist

comma-separated character combinations of the desired indices. Select from "VVI","VARI","NDTI","RI","CI","BI","SI","HI","TGI","GLI","NGRDI", default=all. See details

Details

available indices

Value

returns a RasterStack with the selected indices

Author(s)

Andreas Schönberg

References

The IDB Project (2020): Index Database (https://www.indexdatabase.de/)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
### load data
extpath <-system.file("extdata","lau_mspec.tif",package = "LEGION")
mspec <- raster::stack(extpath)
names(mspec)<- c("blue","green","red","nir")
### compute all vegetation indizes
x <-LEGION::vegInd_RGB(mspec,3,2,1)
plot(x)
### select specific vegetation indices
vi <-c("VVI","SI","GLI")
y <-LEGION::vegInd_RGB(mspec,3,2,1,indlist=vi)
plot(y)

SchoenbergA/LEGION documentation built on Jan. 31, 2021, 10:12 a.m.