is_index
is_index#
- is_index(idx) bool [source]#
Returns True if is an index function from the
bands.index
module>>> from eoreader.bands import * >>> is_index(NDVI) True >>> is_index(HH) False >>> is_index(GREEN) False >>> is_index(SLOPE) False >>> is_index(CLOUDS) False
- Parameters
idx (Any) – Anything that could be an index
- Returns
True if the index asked is an index function (such as
index.NDVI
)- Return type