geetools.Image.ImageAccessor.preprocess#

geetools.Image.ImageAccessor.preprocess(**kwargs)#

Pre-processes the image: masks clouds and shadows, and scales and offsets the image.

Parameters:

**kwargs – Keywords arguments for maskClouds method.

Returns:

Pre-processed image.

Return type:

ee.Image

Examples


import ee import geetools

ee.Initialize() S2 = ee.ImageCollection(‘COPERNICUS/S2_SR’).first().preprocess()