geetools.Image.ImageAccessor.getValues#

geetools.Image.ImageAccessor.getValues(point, scale=0)#

Get the value of the image at the given point using specified geometry.

The result is presented as a dictionary where the keys are the bands name and the value the mean value of the band at the given point.

Parameters:
  • point (ee.Geometry.Point) – The geometry to get the value from.

  • scale (geetools.types.ee_int)

Returns:

A dictionary with the band names and the value at the given point.

Return type:

ee.Dictionary

Examples

import ee, geetools

ee.Initialize()

image = ee.Image('COPERNICUS/S2_SR_HARMONIZED/20200101T100319_20200101T100321_T32TQM')
point = ee.Geometry.Point([11.0, 45.0])
value = image.geetools.getValues(point, 10)
print(value.getInfo())