NDVI: NDVI - Normalized Difference Vegetation Index

Description Usage Arguments Value References Examples

Description

NDVI is used to quantify vegetation greenness and is useful in understanding vegetation density and assessing changes in plant health. This function requires the Red and Near Infrared values.

Usage

1
NDVI(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

NDVI - Normalized Difference 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

1
2
3
4
5
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)
NDVI(x[[4]], x[[5]])

nightmares documentation built on Oct. 23, 2020, 7:15 p.m.