Selects bands from an image.
Returns an image with the selected bands.
Usage | Returns |
---|---|
Image.select(var_args) | Image |
Argument | Type | Details |
---|---|---|
this: image | Image | The Image instance. |
var_args | VarArgs | 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!