0

My goal is to get monthly Sentinel-2A imagens in Google Earth Engine Code Editor without need to change the date in the script, only using a scrollbar images fixed at monthly intervals for visualize one per month.

var sentinel_dry = ee.ImageCollection('COPERNICUS/S2').
 filterDate('2017-07-01', '2017-09-30').
 filterBounds(plot).
 sort('CLOUDY_PIXEL_PERCENTAGE', true).
 first();
var sentinel_dry = ee.Image(sentinel_dry);

var sentinel_wet = ee.ImageCollection('COPERNICUS/S2').
 filterDate('2016-10-01', '2016-12-31').
 filterBounds(plot).
 sort('CLOUDY_PIXEL_PERCENTAGE', true).
 first();
var sentinel_wet = ee.Image(sentinel_wet);

Your Answer

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

Browse other questions tagged or ask your own question.