geetools.tools._deprecated_image#

Legacy tools for the ee.Image class.

Module Contents#

Functions#

addConstantBands(image[, value])

Add constant bands to an image.

addMultiBands(imageList)

Merge images.

addPrefix(image, prefix[, bands])

Add a prefix to the selected bands of the image.

addSuffix(image, suffix[, bands])

Add a suffix to the selected bands of an image.

applyMask(image, mask[, bands, negative])

Apply a passed positive mask.

arrayNonZeros(image)

Return an image array without zeros.

bufferMask(image, radius[, units])

Buffer the mask of an image.

clipToCollection(image, featureCollection[, ...])

Clip an image using each feature of a collection and return an. image collection.

deleteProperties(image, delete, keep, proxy_name)

Delete properties from an image.

doyToDate(image[, dateFormat, year])

Make a date band from a day of year band.

empty([value, names, from_dict])

Create a constant image with the given band names and value, and/or. from a dictionary of {name: value}.

emptyBackground(image[, value])

Make all background pixels (not only masked, but all over the world).

emptyCopy(image[, emptyValue, copyProperties, ...])

Make an empty copy of the given image.

gaussFunction(image, band, **kwargs)

Apply the Gaussian function to an Image.

getTileURL(image[, visParams])

Get the URL for the given image passing a normal visualization.

getValue(image, point[, scale])

Get the values of an image at a point.

goodPix(image, retain, drop, name)

Get a 'good pixels' bands from the image's bands that retain the good.

histogramMatch(sourceImg, targetImg[, geometry, ...])

Histogram Matching. From https://medium.com/google-earth/histogram-matching-c7153c85066d.

linearFunction(image, band[, range_min, range_max, ...])

Apply a linear function over one image band using the following.

makeName(image, pattern[, date_pattern, extra])

Make a name for an image using a pattern.

maskCover(*args, **kwargs)

Compute the percentage of covered area and set it as a property.

maskInside(image, geometry)

Mask the image inside the geometry.

minscale(image)

Get the minimum scale of an image.

mixBands(imageList)

Merge images.

normalDistribution(image, band, **kwargs)

Compute a Normal Distribution using the Gaussian Function.

paint(image, featurecollection[, color, width])

Paint a FeatureCollection onto an Image.

parametrize(image, range_from, range_to, *args, **kwargs)

Parametrize from a original known range to a fixed new range.

passProperty(image, to[, properties])

Pass properties from an image to another.

proxy([values, names, types])

Create a proxy image with the given values, names and types.

regionCover(*args, **kwargs)

Compute de percentage of values greater than 1 in area and set it as a property.

removeBands(image, bands)

Remove bands from an image.

renameDict(image, names)

Renames bands of images using a dict.

renamePattern(image, pattern[, bands])

Rename bands using a pattern.

repeatBand(image[, times, names, properties])

Repeat one band. If the image parsed has more than one band, the first.

replace(image, to_replace, to_add)

Replace bands in an image.

sumBands(image[, name, bands])

Adds all bands values and puts the result on name.

toGrid(image[, size, band, geometry])

Create a grid from pixels in an image. Results may depend on the image.

geetools.tools._deprecated_image.addConstantBands(image, value=None, *names, **pairs)[source]#

Add constant bands to an image.

geetools.tools._deprecated_image.addMultiBands(imageList)[source]#

Merge images.

geetools.tools._deprecated_image.addPrefix(image, prefix, bands=None)[source]#

Add a prefix to the selected bands of the image.

geetools.tools._deprecated_image.addSuffix(image, suffix, bands=None)[source]#

Add a suffix to the selected bands of an image.

geetools.tools._deprecated_image.applyMask(image, mask, bands=None, negative=True)[source]#

Apply a passed positive mask.

geetools.tools._deprecated_image.arrayNonZeros(image)[source]#

Return an image array without zeros.

geetools.tools._deprecated_image.bufferMask(image, radius, units='pixels')[source]#

Buffer the mask of an image.

geetools.tools._deprecated_image.clipToCollection(image, featureCollection, keepFeatureProperties=True)[source]#

Clip an image using each feature of a collection and return an. image collection.

geetools.tools._deprecated_image.deleteProperties(image, delete, keep, proxy_name)[source]#

Delete properties from an image.

geetools.tools._deprecated_image.doyToDate(image, dateFormat='yyyyMMdd', year=None)[source]#

Make a date band from a day of year band.

geetools.tools._deprecated_image.empty(value=[0], names=['constant'], from_dict=None)[source]#

Create a constant image with the given band names and value, and/or. from a dictionary of {name: value}.

geetools.tools._deprecated_image.emptyBackground(image, value=0)[source]#

Make all background pixels (not only masked, but all over the world).

geetools.tools._deprecated_image.emptyCopy(image, emptyValue=0, copyProperties=None, keepMask=False, region=None)[source]#

Make an empty copy of the given image.

geetools.tools._deprecated_image.gaussFunction(image, band, **kwargs)[source]#

Apply the Gaussian function to an Image.

geetools.tools._deprecated_image.getTileURL(image, visParams=None)[source]#

Get the URL for the given image passing a normal visualization.

geetools.tools._deprecated_image.getValue(image, point, scale=None)[source]#

Get the values of an image at a point.

geetools.tools._deprecated_image.goodPix(image, retain, drop, name)[source]#

Get a ‘good pixels’ bands from the image’s bands that retain the good.

geetools.tools._deprecated_image.histogramMatch(sourceImg, targetImg, geometry=None, scale=None, tiles=4, bestEffort=True)[source]#

Histogram Matching. From https://medium.com/google-earth/histogram-matching-c7153c85066d.

geetools.tools._deprecated_image.linearFunction(image, band, range_min=None, range_max=None, mean=None, output_min=None, output_max=None, name='linear_function', region=None, scale=None)[source]#

Apply a linear function over one image band using the following.

geetools.tools._deprecated_image.makeName(image, pattern, date_pattern=None, extra=None)[source]#

Make a name for an image using a pattern.

geetools.tools._deprecated_image.maskCover(*args, **kwargs)[source]#

Compute the percentage of covered area and set it as a property.

geetools.tools._deprecated_image.maskInside(image, geometry)[source]#

Mask the image inside the geometry.

geetools.tools._deprecated_image.minscale(image)[source]#

Get the minimum scale of an image.

geetools.tools._deprecated_image.mixBands(imageList)[source]#

Merge images.

geetools.tools._deprecated_image.normalDistribution(image, band, **kwargs)[source]#

Compute a Normal Distribution using the Gaussian Function.

geetools.tools._deprecated_image.paint(image, featurecollection, color='black', width=1, *args, **kwargs)[source]#

Paint a FeatureCollection onto an Image.

geetools.tools._deprecated_image.parametrize(image, range_from, range_to, *args, **kwargs)[source]#

Parametrize from a original known range to a fixed new range.

geetools.tools._deprecated_image.passProperty(image, to, properties=[])[source]#

Pass properties from an image to another.

geetools.tools._deprecated_image.proxy(values=(0,), names=('constant',), types=('int8',))[source]#

Create a proxy image with the given values, names and types.

geetools.tools._deprecated_image.regionCover(*args, **kwargs)[source]#

Compute de percentage of values greater than 1 in area and set it as a property.

geetools.tools._deprecated_image.removeBands(image, bands)[source]#

Remove bands from an image.

geetools.tools._deprecated_image.renameDict(image, names)[source]#

Renames bands of images using a dict.

geetools.tools._deprecated_image.renamePattern(image, pattern, bands=[])[source]#

Rename bands using a pattern.

geetools.tools._deprecated_image.repeatBand(image, times=1, names=None, properties=None)[source]#

Repeat one band. If the image parsed has more than one band, the first.

geetools.tools._deprecated_image.replace(image, to_replace, to_add)[source]#

Replace bands in an image.

geetools.tools._deprecated_image.sumBands(image, name='sum', bands=None)[source]#

Adds all bands values and puts the result on name.

geetools.tools._deprecated_image.toGrid(image, size=1, band=None, geometry=None)[source]#

Create a grid from pixels in an image. Results may depend on the image.