# TSAVI

## Summary

Calculates the Transformed Soil Adjusted Vegetation Index (TSAVI) from a multiband raster object and returns a raster object with the index values.

## Discussion

The Transformed Soil Adjusted Vegetation Index (TSAVI) method is a vegetation index that minimizes soil brightness influences by assuming the soil line has an arbitrary slope and intercept.

``TSAVI = (s *(NIR - s * Red - a)) / (a * NIR + Red - a * s + X * (1 + s2))``
• NIR = pixel values from the near-infrared band
• Red = pixel values from the red band
• s = the soil line slope
• a = the soil line intercept
• X = an adjustment factor that is set to minimize soil noise

Using a space-delimited list, you will identify the NIR and red bands and enter the s, a, and X values in the following order: NIR Red s a X. For example, 3 1 0.33 0.50 1.50.

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

`TSAVI (raster, {nir_band_id}, {red_band_id}, {s}, {a}, {X})`
 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 4) Integer red_band_id The band ID of the red band. The ID index uses one-based indexing.(The default value is 3) Integer s The slope of the soil line.(The default value is 0.33) Double a The soil line intercept.(The default value is 0.5) Double X The adjustment factor that is set to minimize soil noise.(The default value is 1.5) Double
Return Value
 Data Type Explanation Raster The output raster with the TSAVI values.

## Code sample

PVI example

Calculates the Transformed Soil Adjusted Vegetation Index for a Landsat 8 image.

``````import arcpy

TSAVI_raster = arcpy.sa.TSAVI("Landsat8.tif",5,4,0.33,0.5,1.5)``````

#### Related topics

##### Related topics
1. An overview of the Spatial Analyst functions