full#

geetools.ee_array.ArrayAccessor.full(width, height, value)#

Create an ee.Array with the given dimensions, initialized to the given value.

Parameters:
Returns:

An array with the given dimensions, initialized to the given value.

Return type:

ee.Array

Examples

import ee, geetools
from geetools.utils import initialize_documentation

initialize_documentation()

array = ee.Array.geetools.full(3, 3, 1)
array.getInfo()
[[1, 1, 1], [1, 1, 1], [1, 1, 1]]