is_clouds#
- is_clouds(clouds: str | SpectralBandNames | SarBandNames | CloudsBandNames | DemBandNames | BandNames) bool [source]#
Returns True if is a cloud band (from
CloudBandNames
)- Parameters:
clouds (BandType) – Anything that could be a cloud band
- Returns:
True if the band asked is a cloud band
- Return type:
Examples
>>> from eoreader.bands import NDVI, HH, GREEN, SLOPE, CLOUDS >>> >>> is_clouds(NDVI) False >>> is_clouds(HH) False >>> is_clouds(GREEN) False >>> is_clouds(SLOPE) False >>> is_clouds(CLOUDS) True