I'm new to scripting so I need some help. So I used the following script:
To get the following console output:
So my question is : How can I have a percentage instead of a frequency? or in other words : *Is there a percentage equivalent to ee.Reducer.frequencyHistogram() ?* And while we're at it, I have another question : *How can I change the labels in the legend to have "Agriculture", "Grass and Shrubland", "Forest", "Flooded", "Urban areas", "Bare areas", "Water", and "Permanent snow and ice" instead of "1", "2", "3", "4", "5", "6", "7", and "8"?* Thank you very much! asked 29 Feb '16, 21:46 Nahas |
Dear Nahas, For this kind of questions on Google Earth Engine you will probably find better feedback on the Google Earth Engine support forum From the top of my head maybe it is better that you present the information using a histogram chart, something like this : Or even how the percentage of days a plot has an NDVI over a threshold is shown in our standard GEE script : Standard Collect Earth GEE script Anyway, for this you will get better answers from the GEE support forum! answered 01 Mar '16, 10:52 Open Foris ♦♦ |