When reducing an image to number on it's geographical coordinates, the code does return a number, which is what should happen.
var accum = ETo.reduce(ee.Reducer.sum()); var accumNum = accum.reduceRegion(ee.Reducer.sum(),geom,30); accumNum = accumNum.getNumber('Potential_Evaporation_Rate_surface_6_Hour_Average_sum'); print('accum:', accumNum);
Resulting in the following print:
However, when I try to perform any other basic calculations such as an addition, it prints a weird string of code which doesn't contain the number at all.
print('accum:', 5 + accumNum);
This only concatinates the 5 to the string of code description returned by the operation.
The problem also happens when I try to set a label to the value of accumNum. However, in this case I can't display the number at all even without performing any calculations.
The only thing I need is to get the actual value from the reduced region. Does anyone have a suggestion for this?