1

I know how to reduce a collection to one image, or an image to a value in Google Earth Engine. But I can not find an easy way to reduce each image in a collection to a statistics and get a list of that. How it can be done?

As it is easy to get a list of a metadata property over a collection, I was thinking that maybe I can just add my statistics as a metadata to each image, but I couldn't find any way to add a property to the image. Also even if I can, then maybe I can not apply it over collection because the output is not a map.

Any help?

  • What statistics are you looking for - can you provide a (code) example of the calculation you perform for a single image? – Kersten Jul 11 '18 at 6:28
  • I mean, I can define a region in an image and then calculate the minimum value of a desired band using image.reduceRegion. Also I can reduce the collection of images to an image consisting of minimum values for each pixel through all collection using collection.reduce. But I want to reduce each image in the collection separately and have the minimum of all of its pixels in a list. – Shahriar49 Jul 11 '18 at 20:09
  • I think what you want to do is to map the reducer function over the collection? developers.google.com/earth-engine/ic_mapping – Christoph Rieke Jul 13 '18 at 17:24
  • Oh yes you are right! I am new to GEE. Thank you very much. – Shahriar49 Jul 13 '18 at 20:47
  • You should mark this as answered. – Noel Gorelick Jan 9 at 13:52

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.