Stay organized with collections
Save and categorize content based on your preferences.
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']);
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-02-20 UTC."],[[["`Image.select()` is used to select specific bands from an image by their name, index, or using regular expressions."],["You can provide band selectors as individual arguments, a single list, or two lists (one for selectors and one for new band names)."],["This method returns a new image containing only the selected bands, potentially with renamed bands if specified."],["Regular expressions provide a powerful way to select multiple bands matching a pattern."]]],[]]