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