is_dem

Contents

is_dem#

is_dem(dem: str | SpectralBandNames | SarBandNames | CloudsBandNames | DemBandNames | BandNames) bool[source]#

Returns True if is a DEM band (from DemBandNames)

Parameters:

clouds (BandType) – Anything that could be a DEM band

Returns:

True if the band asked is a DEM band

Return type:

bool

Examples

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