Selects bands from an image.

Returns an image with the selected bands.

this: imageImage

The Image instance.


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 ='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 =['a', 4], ['newA', 'newB']);