NDVI: Calculates the Normalized Difference Vegetation Index (NDVI)

Description Usage Arguments Examples

Description

Calculates the NDVI, defined as: (nir - red) / (nir + red).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
NDVI(red, nir, ...)

## S4 method for signature 'numeric,numeric'
NDVI(red, nir)

## S4 method for signature 'matrix,matrix'
NDVI(red, nir)

## S4 method for signature 'RasterLayer,RasterLayer'
NDVI(red, nir, ...)

Arguments

red

red

nir

near-infrared

...

additional arguments as for writeRaster

Examples

1
2
3
NDVI_img <- NDVI(red=raster(L5TSR_1986, layer=3), nir=raster(L5TSR_1986, 
                layer=4))
plot(NDVI_img)

azvoleff/teamlucc documentation built on June 4, 2017, 12:08 a.m.