is_s2_l2a_specific_band

is_s2_l2a_specific_band#

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

Returns True if is a S2 L2A specific band (from Sentinel2L2ABands)

Parameters:

band (BandType) – Anything that could be a S2 L2A specific band

Returns:

True if the band asked is a Mask band

Return type:

bool

Examples

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