geetools.ImageAccessor.remove#

geetools.ImageAccessor.remove(bands)#

Remove bands from the image.

Parameters:

bands (geetools.types.ee_list) – The bands to remove.

Returns:

The image without the specified bands.

Return type:

ee.Image

Examples

import ee, geetools

ee.Initialize()

src = 'COPERNICUS/S2_SR_HARMONIZED/20200101T100319_20200101T100321_T32TQM'
image = ee.Image(src).select(['B1', 'B2', 'B3'])
image = image.geetools.remove(['B1', 'B2'])
print(image.bandNames().getInfo())