geetools.Image.ImageAccessor.full#

classmethod geetools.Image.ImageAccessor.full(values=[0], names=['constant'])#

Create an image with the given values and names.

Parameters:
  • values (geetools.types.ee_list) – The values to initialize the image with. If one value is given, it will be used for all bands.

  • names (geetools.types.ee_list) – The names of the bands. By default it uses the earthen engine default value, “constant”.

Returns:

An image with the given values and names.

Return type:

ee.Image

Examples

import ee, geetools

ee.Initialize()

image = ee.Image.geetools.full([1, 2, 3], ['a', 'b', 'c'])
print(image.bandNames().getInfo())