swectral.vegeind.nwi#
- swectral.vegeind.nwi(spec_array, wavelength, axis=0)[source]#
Compute NWI (Normalized Water Index) of 2D array-like of 1D spectra data series. The calculation is based on:
K.K. Bandyopadhyay, S. Pradhan, R.N. Sahoo, Ravender Singh, V.K. Gupta, D.K. Joshi, A.K. Sutradhar, Characterization of water stress and prediction of yield of wheat using spectral indices under varied water and nitrogen management practices, Agricultural Water Management, Volume 146, 2014, Pages 115-123, ISSN 0378-3774, https://doi.org/10.1016/j.agwat.2014.07.017.
- 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.
- axis
int,optional Axis of spectral data series index, must be 0 or 1. If 0, each row represents a sample spectrum.
- spec_array2D array_like,
- Returns:
pandas.DataFrameDataframe containing spectral indices of the samples.
- Return type:
DataFrame
See also