swectral.vegeind.ndsi#

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

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

Nguyen, KA., Liou, YA., Tran, HP. et al.
Soil salinity assessment by using near-infrared channel and Vegetation Soil Salinity Index derived from Landsat 8 OLI data: a case study in the Tra Vinh Province, Mekong Delta, Vietnam.
Prog Earth Planet Sci 7, 1 (2020).
https://doi.org/10.1186/s40645-019-0311-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