aggregateArray#
- geetools.ImageCollectionAccessor.aggregateArray(properties=None)#
Aggregate the
ee.ImageCollectionselected properties into a dictionary.- Parameters:
properties (list | ee.List | None) – list of properties to aggregate. If None, all properties are aggregated.
- Returns:
A dictionary with the properties as keys and the aggregated values as values.
- Return type:
Examples
import ee, geetools ee.Initialize() collection = ( ee.ImageCollection("LANDSAT/LC08/C01/T1_TOA") .filterBounds(ee.Geometry.Point(-122.262, 37.8719)) .filterDate("2014-01-01", "2014-12-31") ) aggregated = collection.geetools.aggregateArray(["CLOUD_COVER", "system:time_start"]) print(aggregated.getInfo())