Summary
Calculates the Soil Adjusted Vegetation Index (SAVI) from a multiband raster object and returns a raster object with the index values.
Discussion
The Soil-Adjusted Vegetation Index (SAVI) is a vegetation index that attempts to minimize soil brightness influences using a soil-brightness correction factor. This is often used in arid regions where vegetative cover is low.
SAVI = ((NIR - Red)/(NIR + Red + L)) * (1 + L)
- L—The amount of green vegetation cover. For example, 0.5.
For information about other multiband raster indexes, see the Band Arithmetic raster function.
The referenced raster dataset for the raster object is temporary. To make it permanent, you can call the raster object's save method.
Syntax
SAVI (raster, {nir_band_id}, {red_band_id}, {l})
Parameter | Explanation | Data Type |
raster | The input raster. | Raster |
nir_band_id | The band ID of the near-infrared band. The ID index uses one-based indexing. (The default value is 7) | Integer |
red_band_id | The band ID of the red-edge band. The band ID index uses one-based indexing. (The default value is 6) | Integer |
l | The amount of green vegetative cover. (The default value is 0.33) | Double |
Data Type | Explanation |
Raster | The output raster with SAVI index values. |
Code sample
Calculates the Soil Adjusted Vegetation Index for a Landsat 8 image.
import arcpy
SAVI_raster = arcpy.ia.SAVI("Landsat8.tif",5,4,0.5)