is_sat_band#

is_sat_band(band) bool[source]#

Returns True if is a band (from both SarBandNames or SpectralBandNames)

>>> from eoreader.bands import *
>>> is_sat_band(NDVI)
False
>>> is_sat_band(HH)
True
>>> is_sat_band(GREEN)
True
>>> is_sat_band(SLOPE)
False
>>> is_sat_band(CLOUDS)
False
Parameters

band (Any) – Anything that could be a band

Returns

True if the band asked is a band

Return type

bool