I am trying to create a series of images with the best image per year using Landsat 7 from 2000-2017 around the legal Amazon (using RBG bands 1-3). The code I have so far pulls up over 70,000 images over the period. It seems like I should be looping through images in each year and finding the least cloudy image, but I know you're not supposed to write loops in GGE.
I'm really new to this platform so I may be missing something obvious!
The end goal is to create a timelapse that I will overlay with my own dataset. The code below is what I have so far, and I have no idea how to proceed from here:
// create polygon around legal amazon
var Amaz = ee.Geometry.Polygon([[-43.0, -18.0], [-69.0, -18.0], [-69.0,5.0], [-43.0, 5.0]]);
Map.addLayer(Amaz)
//dates of interest
var start = ee.Date('2000-01-01');
var end = ee.Date('2018-01-01');
// create image collection
var Amazon_images = ee.ImageCollection('LANDSAT/LE07/C01/T1_SR')
.filterBounds(Amaz)
.filterDate(start, end)
.sort('CLOUD_COVER', false);
// Get number of images
var count = Amazon_images.size();
print('size of collection Amazon_images', count);