I have FeatureCollection
in GEE , so for each feature there is data in the properties about total number of pixels, means and more data.
I would like to add new column with computation based on this data in the dictionary, for example, new column (or key) that will be the result of computation of bt0204/count
, or any other computation.
How can I access this key-value data in order to run computations? How can I run computation over values in dictionaries?
My end goal: to be able to calculate the percentage of different pixels values , for example to run bt0204/count*100
, and have the result as new key (column).
Edit: I have tried to use this method just to get the number:
var num=dictionary.get('bt0204');
and then print it, but I get null. maybebe because there are many features? I don't know