awesome-spectral-indices / spyndex

Awesome Spectral Indices in Python.
https://spyndex.readthedocs.io/
MIT License
186 stars 22 forks source link

Missing gamma parameter for ARVI index. #6

Closed julianblue closed 2 years ago

julianblue commented 2 years ago

@davemlz is the gamma parameter a fixed constant or does it need to always be specified by the user ? It is not added in the constant class. Thanks for looking into this.

davemlz commented 2 years ago

Ohhh yes, I have to add it to the constant class, you're totally right. Thank you for pointing it, I'm on it!

In the meanwhile: the default value is 1.0, but that would just convert the ARVI into a BNDVI. The paper also tries values between 0.0 and 2.0 if I'm not wrong. But using a value of 0 would convert the ARVI into a NDVI.

davemlz commented 2 years ago

Done! gamma is now part of the constants. If you install the dev version, it should be available: pip install git+https://github.com/davemlz/spyndex

Thank you!