I am using GEE and wish to set a threshold and exclude images based on an the image's band value and remove it from a collection. I do not want to mask the image, I want it physically out of the collection. As far as I can tell using ee.filter only works with metadata, not the images' bands.
Anyone have a clue?
Best Answer
This can be done in two steps. First, you need to turn information stored in images into metadata (image property). Then it can be used in the same way as all other filters. For example, this is how you can filter all images with some number of potential water pixels within some distance from a given point: https://code.earthengine.google.com/491ecb33a4b5fbe5f4cb9a3669254d05
The above code computes a new property for every image and then uses that property to filter image collection, resulting in only images where water is present.