geetools.ImageCollectionAccessor.aggregateArray#

geetools.ImageCollectionAccessor.aggregateArray(properties=None)#

Aggregate the ImageCollection selected properties into a dictionary.

Parameters:

properties (Optional[geetools.types.ee_list]) – 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:

ee.Dict

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.ldc.aggregateArray(["CLOUD_COVER", "system:time_start"])
print(aggregated.getInfo())