The Science and Technology Society (STS) of Sarasota-Manatee Counties, FL have created a Jupyter Notebook to load raw NASA STELLA-Q2 spectrometer data, white-card correct the wavelength data and then use Decision Tree and Knn to differentiate plant species based on the mean End-Members reference data where the Normalized Difference Vegetative Index (NDVI) is key to this analysis. NDVI is calculated:
NDVI = (Near IR irradiance – Red irradiance)/( Near IR irradiance + Red irradiance)
The STELLA-Q2 is a NASA configured hand-held spectrometer designed by Paul Mirel at NASA. The unit is relatively inexpensive and is used to collect End-Member data that can then be used to calibrate Landsat interpretations. Mike Taylor of NASA heads up the STELLA team, and he and his entire team have been so immensely helpful as we delve into calibrated Landsat interpretations.
In our notebooks we employ a few novel python methods using Altair and Panel to display the actual plant species images along the time-series NDVI data for each of the spectrometer readings. This helps us better understand the subtle differences in the STELLA data and calculated values.
The Decision Tree method allows us to better understand the logic use in differentiating one species from the other:
We have also created a Jupyter Notebook (convert_clean4_clean.ipynb) to read in the raw STELLA data (data.csv type data) that has been converted to an xlsx file and the White-Card xlsx file, and then create a series of Excel files that are easy to read and contain the raw data, white-card, white-card corrected data as well as time-series and wavelength plots. We also create an Excel file that has the calculated NDVI time-series data and plots too.
If you do not use jupyter notebooks, then just run the same program as a python script:
python convert_clean4_clean.py
This will result in 5 Excel files that are trimmed for easy access in Excel, and we have provided some plots too. The 5_wavelength_plots_White_Card_Corrected_NDVI.xlsx has the white-card corrected data and a calculated NDVI for each reading.