Learn R Programming

nightmares (version 0.0.2)

SAVI: SAVI - Soil Adjusted Vegetation Index

Description

SAVI is used to correct the Normalized Difference Vegetation Index for the influence of soil brightness in areas where vegetative cover is low.

Usage

SAVI(R, NIR)

Arguments

R

A raster layer object with the reflectance values for the Red band.

NIR

A raster layer object with the reflectance values for the Near Infrared band.

Value

SAVI - Soil Adjusted Vegetation Index.

References

https://www.usgs.gov/core-science-systems/nli/landsat/landsat-surface-reflectance-derived-spectral-indices. https://www.geo.university/pages/spectral-indices-with-multispectral-satellite-data.

Examples

Run this code
# NOT RUN {
library(raster)
path_files <- system.file("extdata/", package="nightmares")
bands <- stack(list.files(path_files,".tif", full.names=TRUE))
x <- ref_oli(bands, sun.elev= 67.97)
SAVI(x[[4]], x[[5]])

# }

Run the code above in your browser using DataLab