swectral.vegeind.swsi2#
- swectral.vegeind.swsi2(spec_array, wavelength, axis=0)[source]#
Compute SWSI2 (Salinity and Water Stress Index 2) of 2D array-like of 1D spectra data series. The calculation is based on:
S. Hamzeh, A.A. Naseri, S.K. AlaviPanah, B. Mojaradi, H.M. Bartholomeus, J.G.P.W. Clevers, M. Behzad, Estimating salinity stress in sugarcane fields with spaceborne hyperspectral vegetation indices, International Journal of Applied Earth Observation and Geoinformation, Volume 21, 2013, Pages 282-290, ISSN 1569-8432, https://doi.org/10.1016/j.jag.2012.07.002.
- 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