is_thermal_band

Contents

is_thermal_band#

is_thermal_band(band: str | SpectralBandNames | SarBandNames | CloudsBandNames | DemBandNames | BandNames) bool[source]#

Returns True if is a spectral and a thermal band (from SpectralBandNames)

Parameters:

band (BandType) – Anything that could be an optical band

Returns:

True if the band asked is an optical band

Return type:

bool

Examples

>>> from eoreader.bands import SWIR_1, NDVI, HH, GREEN, SLOPE, CLOUDS
>>>
>>> is_thermal_band(SWIR_1)
True
>>> is_thermal_band(NDVI)
False
>>> is_thermal_band(HH)
False
>>> is_thermal_band(GREEN)
False
>>> is_thermal_band(SLOPE)
False
>>> is_thermal_band(CLOUDS)
False