geetools.Image.ImageAccessor.addSuffix#
- geetools.Image.ImageAccessor.addSuffix(suffix, bands=[])#
Add a suffix to the image selected band.
Add a suffix to the selected band. If no band is specified, the suffix is added to all bands.
- Parameters:
suffix (geetools.types.ee_str) – The suffix to add to the band.
bands (geetools.types.ee_list) – The bands to add the suffix to. If None, all bands are selected.
- Returns:
The image with the suffix added to the selected bands.
- Return type:
ee.Image
Examples
import ee, geetools ee.Initialize() image = ee.Image('COPERNICUS/S2_SR_HARMONIZED/20200101T100319_20200101T100321_T32TQM') image = image.geetools.addSuffix('_suffix') print(image.bandNames().getInfo())