TransWikia.com

Remove a image from a ImageCollection if a band doesn't exist

Geographic Information Systems Asked on October 26, 2020

I’m using the gee python api. The Hansen & Al. glad alert dataset is currently broken and the 20 last images are missing the ‘conf19’ band. In my process I need to use it anyway as a mosaic so I need to create a new Image Collection that contains all the image that have the ‘conf19’ band.

all_alerts  = ee.ImageCollection('projects/glad/alert/UpdResult') 

#need to filter the images that miss the 'conf19' band here 

var alerts_2019 = all_alerts.select('conf19').mosaic().clip(country);

How can I drop all the images that doesn’t contains a specific band ?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP