eoreader.bands.alias.is_index¶
- is_index(idx: Any) bool [source]¶
Returns True if is an index function from the bands.index module
>>> from eoreader.bands.alias 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