vegInd_mspec: Calculate RGB+Nir indices

Description Usage Arguments Details Value Note Author(s) References Examples

View source: R/vegInd_Nir.R

Description

computes several indices based on RGB+NIR bands

Usage

1
2
3
4
5
6
7
8
vegInd_mspec(
  mspec,
  red = NULL,
  green = NULL,
  blue = NULL,
  nir = NULL,
  indlist = "all"
)

Arguments

mspec

a RasterStack with RGB+NIR 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'

nir

the band/layer number of band 'Near Infrared (NIR)'

indlist

comma-separated character combinations of the desired indices. Select from "NDVI","TDVI","SR","MSR" default=all. See details

Details

available indices

Value

Returns a RasterStack with the selected indices

Note

notes if needed

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_mspec(mspec,3,2,1,4)
plot(x)
### select specific vegetation indices
vi <-c("NDVI","TDVI")
y <-LEGION::vegInd_mspec(mspec,3,2,1,4,indlist=vi)
plot(y)

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