geetools.tools._deprecated_image
#
Legacy tools for the ee.Image class.
Module Contents#
Functions#
|
Add constant bands to an image. |
|
Merge images. |
|
Add a prefix to the selected bands of the image. |
|
Add a suffix to the selected bands of an image. |
|
Apply a passed positive mask. |
|
Return an image array without zeros. |
|
Buffer the mask of an image. |
|
Clip an image using each feature of a collection and return an. image collection. |
|
Delete properties from an image. |
|
Make a date band from a day of year band. |
|
Create a constant image with the given band names and value, and/or. from a dictionary of {name: value}. |
|
Make all background pixels (not only masked, but all over the world). |
|
Make an empty copy of the given image. |
|
Apply the Gaussian function to an Image. |
|
Get the URL for the given image passing a normal visualization. |
|
Get the values of an image at a point. |
|
Get a 'good pixels' bands from the image's bands that retain the good. |
|
Histogram Matching. From https://medium.com/google-earth/histogram-matching-c7153c85066d. |
|
Apply a linear function over one image band using the following. |
|
Make a name for an image using a pattern. |
|
Compute the percentage of covered area and set it as a property. |
|
Mask the image inside the geometry. |
|
Get the minimum scale of an image. |
|
Merge images. |
|
Compute a Normal Distribution using the Gaussian Function. |
|
Paint a FeatureCollection onto an Image. |
|
Parametrize from a original known range to a fixed new range. |
|
Pass properties from an image to another. |
|
Create a proxy image with the given values, names and types. |
|
Compute de percentage of values greater than 1 in area and set it as a property. |
|
Remove bands from an image. |
|
Renames bands of images using a dict. |
|
Rename bands using a pattern. |
|
Repeat one band. If the image parsed has more than one band, the first. |
|
Replace bands in an image. |
|
Adds all bands values and puts the result on name. |
|
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.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.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.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.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.