geetools.ImageCollection.ImageCollectionAccessor#

class geetools.ImageCollection.ImageCollectionAccessor(obj)#

Toolbox for the ee.ImageCollection class.

Instantiate the class.

Parameters:

obj (ee.ImageCollection)

Methods#

append(image)

Append an image to the existing image collection.

closest(date[, tolerance, unit])

Gets the closest image (or set of images if the collection intersects a region that requires multiple scenes) to the specified date.

collectionMask()

A binary ee.Image where only pixels that are masked in all images of the collection get masked.

getCitation()

Gets the citation of the image, if available.

getDOI()

Gets the DOI of the collection, if available.

getOffsetParams()

Gets the offset parameters for each band of the image.

getSTAC()

Gets the STAC of the image.

getScaleParams()

Gets the scale parameters for each band of the image.

iloc(index)

Get Image from the ImageCollection by index.

integral(band[, time, unit])

Compute the integral of a band over time or a specified property.

maskClouds([method, prob, maskCirrus, maskShadows, ...])

Masks clouds and shadows in each image of an ImageCollection (valid just for Surface Reflectance products).

outliers([bands, sigma, drop])

Compute the outlier for each pixel in the specified bands.

panSharpen([method, qa])

Apply panchromatic sharpening to the ImageCollection images.

preprocess(**kwargs)

Pre-processes the image: masks clouds and shadows, and scales and offsets the image.

scaleAndOffset()

Scales bands on an image according to their scale and offset parameters.

spectralIndices([index, G, C1, C2, L, cexp, nexp, ...])

Computes one or more spectral indices (indices are added as bands) for an image from the Awesome List of Spectral Indices.

tasseledCap()

Calculates tasseled cap brightness, wetness, and greenness components.

to_xarray([drop_variables, io_chunks, n_images, ...])

Open an Earth Engine ImageCollection as an xarray.Dataset.