I want to use the landsat 8 surface reflection collection (LANDSAT/LC8_SR), which contains the 7 spectral bands plus some extra mask bands. I want to run my algorithm on just the 7 spectral bands, but I'm not sure how to select these. Does the ee.ImageCollection object have a method which allows you to specify which bands are used?

I am trying to run the ee.Algorithms.Landsat.SimpleComposite method on the image collection, which will not run if there is a mask band in the images.


imageCollection.select(old bands, new band names) creates a new image collection containing only a specified set of bands from the images in a specified image collection

var New = Old.select(['B1','B2','B3','B4','B5','B6','B7'], ['B1','B2','B3','B4','B5','B6','B7'])

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.