swectral.vegeind.wi#

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

Compute WI (Water Index) of 2D array-like of 1D spectra data series. The calculation is based on:

Penuelas, J., Pinol, J., Ogaya, R., & Filella, I. (1997).
Estimation of plant water concentration by the reflectance Water Index WI (R900/R970).
International Journal of Remote Sensing, 18(13), 2869–2875.
https://doi.org/10.1080/014311697217396
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