ee.Image.select

Selects bands from an image.

Returns an image with the selected bands.

UsageReturns
Image.select(var_args)Image
ArgumentTypeDetails
this: imageImage

The Image instance.

var_argsVarArgs

One of two possibilities:

  - Any number of non-list arguments. All of these will be interpreted as band selectors. These can be band names, regexes, or numeric indices. E.g. selected = image.select('a', 'b', 3, 'd');

  - Two lists. The first will be used as band selectors and the second as new names for the selected bands. The number of new names must match the number of selected bands. E.g. selected = image.select(['a', 4], ['newA', 'newB']);

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!