1

I know how to find percentiles within a single image, but is there a way that I can make an output image that is a percentile composite of an entire collection? E.g. a composite image where each pixel value is the 90th percentile value at its respective location given an input collection.

2

Try this:

//import sentinel image
var Sent = ee.ImageCollection('COPERNICUS/S2')
    .filterBounds(geometry)
    .filterDate('2020-05-01', '2020-10-30');

//calculate 90 percentile    
var Sent2 = Sent.reduce(ee.Reducer.percentile([90])));
1
  • This is perfect. Thank you so much! :) – William Speiser Feb 1 at 17:55

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.