swectral.vegeind.ndvi#

swectral.vegeind.ndvi(spec_array, wavelength, axis=0)[source]#

Compute NDVI (Normalized Difference Vegetation Index) of 2D array-like of 1D spectra data series. The calculation is based on:

Compton J. Tucker,
Red and photographic infrared linear combinations for monitoring vegetation,
Remote Sensing of Environment,
Volume 8, Issue 2,
1979,
Pages 127-150,
ISSN 0034-4257,
https://doi.org/10.1016/0034-4257(79)90013-0.
Parameters:
spec_array2D array_like, shape (n_samples, n_features)

2D array-like of 1D spectral data series.

wavelength1D array_like

Wavelengths for the spectra data.

axisint, optional

Axis of spectral data series index, must be 0 or 1. If 0, each row represents a sample spectrum.

Returns:
pandas.DataFrame

Dataframe containing spectral indices of the samples.

Return type:

DataFrame

See also

vegeind_summary