is_sat_band#
- is_sat_band(band: str | SpectralBandNames | SarBandNames | CloudsBandNames | DemBandNames | BandNames) bool [source]#
Returns True if is a satellite band (from both
SarBandNames
orSpectralBandNames
)- Parameters:
band (BandType) – Anything that could be a band
- Returns:
True if the band asked is a satellite band (Spectral or SAR)
- Return type:
Examples
>>> from eoreader.bands import NDVI, HH, GREEN, SLOPE, CLOUDS >>> >>> 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