Vegetation indices {RemoteSensing}R Documentation

Vegetation indices

Description

Compute vegetation indices from remote sensing data.

Usage

arvi(red, nir, blue)
dvi(red, nir)
evi(blue, red, nir)
gvi(blue, green, red, nir, ch5, ch7)
gemi(red, nir)
gari(red, nir, blue, green)
ipvi(red, nir)
msavi(red, nir)
msavi2(red, nir)
ndvi(red, nir)
pvi(red, nir)
sr(red, nir)
savi(red, nir)
vari(blue, green, red)
wdvi(red, nir, slslope = 1)

Arguments

red

red channel (band) data

nir

nir channel (band) data

blue

blue channel (band) data

green

green channel (band) data

ch5

fifth channel (band) data

ch7

seventh channel (band) data

slslope

value of soil line slope

Value

vegetation index

Author(s)

Yann Chemin

Examples

## Not run: 
#MODIS NDVI processing example
#Create RasterLayer objects
red <- raster( system.file("external/MOD09A1_b1.tif", package="RemoteSensing"))
nir <- raster( system.file("external/MOD09A1_b2.tif", package="RemoteSensing"))

#Set NA values before reading
NAvalue(red) <- -28672
NAvalue(nir) <- -28672

NDVI <- overlay(red, nir, fun=ndvi)

#Plot the raster output
plot(NDVI, col=grey(0:255/255))

#add Philippines country boundary
#phl <- getData('gadm', country="PHL", level=0)
#plot(phl, add=T, border="red")

## End(Not run)

[Package RemoteSensing version 0.4.14 Index]