geetools.Array.ArrayAccessor.set#

geetools.Array.ArrayAccessor.set(x, y, value)#

Set the value of a cell in an array.

Parameters:
  • x (geetools.types.ee_int) – The x coordinate of the cell.

  • y (geetools.types.ee_int) – The y coordinate of the cell.

  • value (geetools.types.ee_number) – The value to set the cell to.

Returns:

The array with the cell set to the given value.

Return type:

ee.Array

Examples

import ee, geetools

ee.Initialize()

arr = ee.Array.geetools.full(3, 3, 1)
arr.geetools.set(1, 1, 0).getInfo()