bitsMaskAll#
- geetools.ee_image.ImageAccessor.bitsMaskAll(bits_info, classes=None, band=0)#
Create a mask using the bits information.
- Parameters:
- Returns:
an image with one band named ‘all_mask’, with 1s where ALL classes are present and 0s where not.
- Return type:
Example
import ee, geetools ee.Initialize() ls = ee.Image("LANDSAT/LC09/C02/T1_L2/LC09_232090_20220508") bits = { '5': 'Snow', '8-9': { '1': 'Low', '2': 'Medium', '3': 'High' } } # Detect confusion between snow and medium probability clouds mask = ls.geetools.bitsMaskAll(bits, ['Snow', 'Medium'], 'QA_PIXEL')