vegetationIndices: Vegetation indices

Description Usage Arguments Value Author(s) Examples

Description

Compute vegetation indices from remote sensing data.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## 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)

RemoteSensing documentation built on Feb. 7, 2020, 3 p.m.