geetools.ImageCollection.ImageCollectionAccessor.append#

geetools.ImageCollection.ImageCollectionAccessor.append(image)#

Append an image to the existing image collection.

Parameters:

image (ee.Image) – Image to append to the collection.

Returns:

ImageCollection with the new image appended.

Return type:

ee.ImageCollection

Examples

import ee, geetools

ee.Initialize()

ic = ee.ImageCollection('COPERNICUS/S2_SR');

geom = ee.Geometry.Point(-122.196, 41.411);
ic2018 = ic.filterBounds(geom).filterDate('2019-07-01', '2019-10-01')
ic2021 = ic.filterBounds(geom).filterDate('2021-07-01', '2021-10-01')

ic = ic2018.append(ic2021.first())
ic.getInfo()