How spyndex operator overloading works
mainSpyndex relies on Python's overloaded operators (+, -, /, *, **) to evaluate spectral index formulas. This means any object that behaves like a mathematical number or array can be used as an input.
Supported Object Classes
float/numpy.float*int/numpy.int*numpy.ndarraypandas.Series/geopandasxarray.DataArrayee.Image/ee.Number(viaeemontandearthengine-api)dask.Array/dask.Series(viadask-arrayanddask-dataframeextras)
⚠️ Critical Warning
Do not use Python list objects. In Python, the + operator on a list performs concatenation rather than mathematical addition. You must convert lists to numpy.ndarray or other supported types before passing them to spyndex.