I'm having an issue with what I hope is a rather simple task. I have a raster of worldwide extent and I simply want a list of the unique pixel values in a given band.
Example:
//load in fire data from the last two years as dummy data
var burn = ee.ImageCollection('ESA/CCI/FireCCI/5_1')
.filterDate('2018-11-06', '2020-11-06');
How do I grab a list of unique values from this?
My real dataset is pretty sparse on a worldwide level, so ~300m is where I'd like to set my scale.
Furthermore, can I use this list to filter out entries in a FeatureCollection
that have the unique values I find?
I've tried a variety of methods and a number of S/O threads... so far either reduceRegions has produced a memory error, or a toDictionary
/frequencyHistogram
method has turned up with empty outputs.