I am currently trying to obtain images that have less than 70% cloud cover (for example) and I have come across multiple variations of the same. Could you tell me what is the difference between these three approaches and which approach might be most suitable for obtaining a set of least cloudy images?
Approach 1:
var collection = ee.ImageCollection("COPERNICUS/S2")
.filterBounds(geometry)
.filterMetadata('CLOUDY_PIXEL_PERCENTAGE', 'less_than', 70);
Approach 2:
var collection = ee.ImageCollection("COPERNICUS/S2")
.filterBounds(geometry)
.sort('CLOUDY_PIXEL_PERCENTAGE', false);
Approach 3:
var collection = ee.ImageCollection("COPERNICUS/S2")
.filterBounds(geometry)
.filter(ee.Filter.lte('CLOUDY_PIXEL_PERCENTAGE', 70);