Calculating NDVI

The Normalized Differential Vegetation Index is a very popular vegetation index that gives us useful information about the presence or absence of live green vegetation.

Getting ready

NDVI is calculated using a band with red spectral reflectance values, and another one with near-infrared reflectance values. In the sample dataset, you will find two image files named red.tif and nir.tif that can be used to compute NDVI. A project named ndvi.qgs is available, which contains these two layers and a landsat image corresponding to this same area. Open this project.

How to do it…

  1. Open the Processing Toolbox menu and find the algorithm called Vegetation index[slope based]. Double-click on the algorithm item to execute it:
  2. Select the red.tif ...

Get QGIS: Becoming a GIS Power User now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.