Geographic Information Systems Asked by Pedro Aparicio on August 15, 2021
Is it possible to select from a collection of images for example of 30 years and ask only the image of July for each year? The below only include July images for a single year.
var aoi = ee.Geometry.Point([0, 10])
Map.addLayer(aoi)
var collection = ee.ImageCollection('COPERNICUS/S2')
.filterBounds(aoi)
.filterDate('2020-07-01', '2020-08-01')
As Daniel suggests, use ee.Filter.calendarRange()
for 30 years sequence and for July filtering. You can stack .filter()
functions:
var aoi = ee.Geometry.Point([0, 10])
Map.addLayer(aoi)
var collection = ee.ImageCollection('COPERNICUS/S2')
.filterBounds(aoi)
.filter(ee.Filter.calendarRange(1990,2020,'year'))
.filter(ee.Filter.calendarRange(7,7,'month'));
A 30 years sequence isn't possible to obtain from S2 since it was launched in 2015
Answered by aldo_tapia on August 15, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP