geetools.Image.ImageAccessor.fullLike#

geetools.Image.ImageAccessor.fullLike(fillValue, copyProperties=0, keepMask=0)#

Create an image with the same band names, projection and scale as the original image.

The projection is computed on the first band, make sure all bands have the same. The procduced image can also copy the properties of the original image and keep the mask.

Parameters:
  • fillValue (geetools.types.ee_number) – The value to fill the image with.

  • copyProperties (geetools.types.ee_int) – If True, the properties of the original image will be copied to the new one.

  • keepMask (geetools.types.ee_int) – If True, the mask of the original image will be copied to the new one.

Returns:

An image with the same band names, projection and scale as the original image.

Return type:

ee.Image

Examples

import ee, geetools

ee.Initialize()

image = ee.Image('COPERNICUS/S2_SR_HARMONIZED/20200101T100319_20200101T100321_T32TQM')
image = image.geetools.fullLike(0)
print(image.bandNames().getInfo())