I'm using Earth Engine with the Python API in colab, reducing Landsat NDVI over a ROI. I run the following:
imagereduce = image.reduceRegion(**{
'reducer': ee.Reducer.mean(),
'geometry': feature,
'crs': 'EPSG:4326',
'scale': 30,
'maxPixels': 1e9
})
And it give a dictionary object. I can do imagereduce.get('nd')
to make it a computed object, but I can't extract the actual value. What I've tried:
imagereduce.get('nd').getInfo()
processes endlessly with no result or exceeds user memory (same if I make it a number or string object)imagereduce.evaluate()
as shown here gives "Dictionary has no attribute evaluate"print(imagereduce.serialize())
gives the metadata for the dictionary- doing the same process in javascript will give the value in the console, and will allow both
.getInfo()
and.evaluate
to work, but I will need to (a) do this in python and (b) add the value to an array as I go
Any thoughts on how to get the server-side computed object to a client-side value?