geetools.algorithms.Landsat.unmask_slc_off#

static geetools.algorithms.Landsat.unmask_slc_off(image, optical_bands='B.+')#

Unmask pixels that were affected by scl-off error in Landsat 7.

Expects a Landsat 7 image and it is meant to be used before any other masking, otherwise this could affect the previous mask.

The parameter optical_bands must be used if band were renamed. By default it is B.+ which means that optical bands are those starting with B: B1 (blue), B2 (green), B3 (red), B4 (nir), B5 (swir), B6 (thermal), B7 (swir2).