reduceBands#
- geetools.ee_image.ImageAccessor.reduceBands(reducer, bands=None, name='')#
Reduce the image using the selected reducer and adding the result as a band using the selected name.
- Parameters:
- Returns:
The image with the new reduced band added
- Return type:
Examples
import ee, geetools ee.Initialize() image = ee.Image('COPERNICUS/S2_SR_HARMONIZED/20200101T100319_20200101T100321_T32TQM') image = image.geetools.reduceBands("mean", ['B1', 'B2']) print(image.bandNames().getInfo())