select 来自 google earth engine 中 imageCollection 的特定月份的一张图像

select one image from a specific month of an imageCollection in google earth engine

我想在 Landsat 8 32 天 NDVI Composite imageCollection 2014 年至 2017 年的 12 月保留一层。有没有办法做一个变量筛选 ?或者过滤月份?

要过滤特定月份,您可以在 ImageCollectionfilter 方法中使用 ee.Filter.calendarRange:

var collection = ee.ImageCollection('LANDSAT/LC8_L1T_32DAY_NDVI')
.filter(ee.Filter.calendarRange(12,12,'month'));

结果 ImageCollection 包含以下图片:

0: Image LANDSAT/LC8_L1T_32DAY_NDVI/20131219 (1 band)
1: Image LANDSAT/LC8_L1T_32DAY_NDVI/20141219 (1 band)
2: Image LANDSAT/LC8_L1T_32DAY_NDVI/20151219 (1 band)
3: Image LANDSAT/LC8_L1T_32DAY_NDVI/20161218 (1 band)

至于 select 特定图像,您可以对年份进行相同的过滤或将 ImageCollection 转换为列表并 select 您想要的图像。

HTH