eoreader.bands.alias.is_optical_band¶
-
is_optical_band
(band: Any) → bool[source]¶ Returns True if is an optical band (from OpticalBandNames)
>>> from eoreader.bands.alias import * >>> is_optical_band(NDVI) False >>> is_optical_band(HH) False >>> is_optical_band(GREEN) True >>> is_optical_band(SLOPE) False >>> is_optical_band(CLOUDS) False
- Parameters
band (Any) – Anything that could be an optical band
- Returns
True if the band asked is an optical band
- Return type