te_algorithms.gee.util

class GEEImage
__init__(image, bands, datatype=DataType.INT16)
Parameters:
  • image (Image)

  • bands (List[Band])

  • datatype (DataType)

addBands(image, bands)

Add new bands to the image

cast()
match_bands(bands, reverse=False)

Returns the indices of bands that match input.

Matches on BandInfo name and metadata attributes only.

merge(other)

Merge with another GEEImage object

rmBands(indices)

Remove bands from the image, based on their indices.

rmDuplicates()

Removes any bands that are duplicates

Matches on BandInfo name and metadata attributes only.

class TEImage

A class to store GEE images and band info for export to cloud storage

__init__(image, band_info)
addBands(bands, band_info)

Add new bands to the image

export(geojsons, task_name, crs, logger, execution_id=None, proj=None, maxpixels=10000000000000.0)

Export layers to cloud storage

getImages(name_filter, field=None, field_filter=None)

Select certain bands from the image(s), dropping all others

Parameters:
  • name_filter (str | list)

  • field (None | str)

  • field_filter (None | str)

merge(other)

Merge with another TEImage by adding data from other TEImage as new bands

selectBands(band_names)

Select certain bands from the image, dropping all others

setAddToMap(band_names=[])

Set the layers that will be added to the map by default

class TEImageV2

A class to store GEE images and band info for export to cloud storage

__init__(images={})
Parameters:

images (Dict[str, GEEImage])

add_image(image, bands, datatype=DataType.INT16)
Parameters:
  • image (Image)

  • bands (List[Band])

  • datatype (DataType)

export(geojsons, task_name, crs, logger, execution_id=None, proj=None, filetype=RasterFileType.COG, maxpixels=10000000000000.0)

Export layers to cloud storage

getImages(name_filter, field=None, field_filter=None)

Select certain bands from the image(s), dropping all others

Parameters:
  • name_filter (str | list)

  • field (None | str)

  • field_filter (None | str)

merge(other)

Merge with another TEImageV2 object

rmDuplicates()
selectBands(band_names)

Select certain bands from the image(s), dropping all others

setAddToMap(band_names=[])

Set the layers that will be added to the map by default

class gee_task

Run earth engine task against the trends.earth API

__init__(task, prefix, logger, metadata=None)

This constructor should always be called with keyword arguments. Arguments are:

group should be None; reserved for future extension when a ThreadGroup class is implemented.

target is the callable object to be invoked by the run() method. Defaults to None, meaning nothing is called.

name is the thread name. By default, a unique name is constructed of the form “Thread-N” where N is a small decimal number.

args is a list or tuple of arguments for the target invocation. Defaults to ().

kwargs is a dictionary of keyword arguments for the target invocation. Defaults to {}.

If a subclass overrides the constructor, it must make sure to invoke the base class constructor (Thread.__init__()) before doing anything else to the thread.

cancel_hdlr(details)
get_uris()
get_urls()
on_backoff_hdlr(details)
poll_for_completion()
run()

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

get_coords(geojson)

.

get_region(geom)

Return ee.Geometry from supplied GeoJSON object.

get_type(geojson)

.

teimage_v1_to_teimage_v2(te_image)

Upgrade a version 1 TEImage to TEImageV2