eoreader.bands.alias.is_index

eoreader.bands.alias.is_index

is_index(idx: Any) bool[source]

Returns True if is an index function from the ands.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 ndex.NDVI)

Return type

bool