In GEE, when I want to use the select method of the Image object with integer, what is the indexing system, starting from 1 or 0 ?


// or 


1 Answer 1


It's 0 based.

var image = ee.Image('UMD/hansen/global_forest_change_2020_v1_8')
print('All bandnames:', image.bandNames())
print('select(0): ', image.select(0).bandNames())
print('select(1): ', image.select(1).bandNames())

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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