I want to list the landcover class values present within my study area in order to remap them to consecutive integers. What is the code to get a list of the values present?
I am open to better suggestions, but if anyone else has the same objective/questions - this helped me for now:
The ee.Reducer.frequencyHistogram() returns dictionary with number of pixels per valid pixel input which are the keys - which equal list of valid pixel values in my area of ineterst
var lc_classes = image.select('b1');
var pixel_classes_count = lc_classes.reduceRegion({