ee.Image.regexpRename

Renames the bands of an image by applying a regular expression replacement to the current band names. Any bands not matched by the regex will be copied over without renaming.

UsageReturns
Image.regexpRename(regex, replacement, all)Image
ArgumentTypeDetails
this: inputImage

The image containing the bands to rename.

regexString

A regular expression to match in each band name.

replacementString

The text with which to replace each match. Supports $n syntax for captured values.

allBoolean, default: true

If true, all matches in a given string will be replaced. Otherwise, only the first match in each string will be replaced.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!