I want to Automate Band selection for all bands. Therefore a List of the Bands is needed. This didn´t work:


1 Answer 1


You can get a list of all the bands in an image by using:

var band_names = image.bandNames()

also see here: https://developers.google.com/earth-engine/api_docs#eeimagebandnames

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.