geetools.ImageCollection.ImageCollectionAccessor#

class geetools.ImageCollection.ImageCollectionAccessor(obj)#

Toolbox for the ee.ImageCollection class.

Instantiate the class.

Parameters:

obj (ee.ImageCollection)

Methods#

aggregateArray([properties])

Aggregate the ImageCollection selected properties into a dictionary.

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.

closestDate()

Fill masked pixels with the first valid pixel in the stack of images.

collectionMask()

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

containsAllBands(bandNames)

Filter the ImageCollection keeping only the images with all the provided bands.

containsAnyBands(bandNames)

Filter the ImageCollection keeping only the images with any of the provided bands.

containsBandNames(bandNames, filter)

Filter the ImageCollection by band names using the provided filter.

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.

groupInterval([unit, duration])

Transform the ImageCollection into a list of smaller collection of the specified duration.

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).

medoid()

Compute the medoid of the ImageCollection.

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.

reduceInterval([reducer, unit, duration, qualityBand])

Reduce the images included in the same duration interval using the provided reducer.

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.

validPixel([band])

Compute the number of valid pixels in the specified band.