calc_osavi: Calculate Optimized Soil-Adjusted Vegetation Index (OSAVI)

View source: R/calc_indices.R

calc_osaviR Documentation

Calculate Optimized Soil-Adjusted Vegetation Index (OSAVI)

Description

Computes the Optimized Soil-Adjusted Vegetation Index (OSAVI) with a standard optimal adjustment parameter theta = 0.16.

Usage

calc_osavi(nir, red, theta = 0.16)

Arguments

nir

Near-infrared band (terra::SpatRaster or numeric).

red

Red band (terra::SpatRaster or numeric).

theta

Canopy background adjustment factor. Defaults to 0.16.

Details

OSAVI = \frac{NIR - RED}{NIR + RED + \theta} \times (1 + \theta)

Description & Purpose: OSAVI is an optimization of SAVI that fixes theta = 0.16, which was found to provide optimal suppression of soil background variation across a broad range of agricultural canopies.

Value

A terra::SpatRaster (named "OSAVI") or numeric vector with index values.

References

Rondeaux, G., Steven, M., & Baret, F. (1996). Optimization of soil-adjusted vegetation indices. Remote Sensing of Environment, 55(2), 95-107.

See Also

calc_savi, calc_msavi, geo_index

Examples

calc_osavi(nir = 0.7, red = 0.2)

img <- get_example_data()
osavi_rast <- calc_osavi(nir = img[["nir"]], red = img[["red"]])
print(osavi_rast)


GeoIndexR documentation built on Oct. 10, 2026, 5:08 p.m.