is_spectral_band
is_spectral_band#
- is_spectral_band(band) bool [source]#
Returns True if is an spectral band (from
SpectralBandNames
)>>> from eoreader.bands import * >>> is_spectral_band(NDVI) False >>> is_spectral_band(HH) False >>> is_spectral_band(GREEN) True >>> is_spectral_band(SLOPE) False >>> is_spectral_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