NDVI: Normalized Difference Vegetation Index (NDVI)

Description Usage Arguments Value References Examples

View source: R/spectral_indices.r

Description

Calculate NDVI

Usage

1
NDVI(df, outp_fname = NULL, ...)

Arguments

df

A data frame (or raster::brick) where columns (layers) represent reflectance measurements in a single wavelength, and columns (layers) are named following Quantalab's conventions.

outp_fname

In case the input is raster data, this is the optional output filename to write the result to

...

Arguments to be passed to get_band_of_wavelength, particularly band_txt, splitter, and i.

Value

A vector with the value of the index

References

Rouse et al. 1974

Examples

1
2
3
4
5
6
## Not run: 
#Calculate the NDVI from a 6 band multispectral image
my_ms_data <- raster::brick('H:/FISE/forest/CanopyHealthMonitoring/PWN/flights_final/150727_mca/150727_mca.bsq')
my_NDVI <- CanHeMonR::NDVI(my_ms_data)

## End(Not run)

pieterbeck/CanHeMonR documentation built on May 25, 2019, 7:11 a.m.