Normalized difference vegetation index (NDVI)

This tool calculates the normalized difference vegetation index (NDVI) from a near-infrared (NIR) band image and a red band image. The NDVI is calculated as follows:



NDVI is most commonly calculated from multi-spectral satellite imagery to assess the abundance and vigor of vegetation in an area. For Landsat data, the red band is TM3 and the NIR band is TM4. For a detailed description of the theory and application of this important remote sensing index, see any introductory remote sensing textbook.

NoData valued grid cells in either of the input images will be assigned NoData values in the output image. The output raster is of the float data type and continuous data scale.

See Also:


The following is an example of a Python script that uses this tool:

wd = pluginHost.getWorkingDirectory()
nearIRFile = wd + "near infrared band.dep"
redFile = wd + "red band.dep"
outputFile = wd + "output.dep"
args = [nearIRFile, redFile, outputFile]
pluginHost.runPlugin("NDVI", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def nearIRFile = wd + "near infrared band.dep"
def redFile = wd + "red band.dep"
def outputFile = wd + "output.dep"
String[] args = [nearIRFile, redFile, outputFile]
pluginHost.runPlugin("NDVI", args, false)