Learn R Programming

nightmares (version 0.0.2)

AVI: AVI - Advanced Vegetation Index

Description

AVI is similar to NDVI and it is used in vegetation studies to monitor crop and forest variations over time. Through the multi-temporal combination of the AVI and the NDVI, users can discriminate different types of vegetation and extract phenology characteristics.

Usage

AVI(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

AVI - Advanced Vegetation Index

References

Rikimaru et al., 2002. Tropical forest cover density mapping. Tropical Ecology, 43, 39-47. 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)
AVI(x[[4]], x[[5]])

# }

Run the code above in your browser using DataLab