Python Library for deriving vegetation indexes from satellite or aerial imagery
pip install vegi
numpy
rasterio
Input arguments follow a convention of increasing wavelength using their full lowercase color as the variable name.
import vegi
# Normalized Difference Vegetation Index
array = vegi.ndvi(red, nir)
# Green Atmospherically Resistant Vegetation Index
array = vegi.gari(blue, green, red, nir)
# Soil Adjusted Vegetation Index
array = vegi.savi(red, nir, L=0.5)