groupInterval#
- geetools.ImageCollectionAccessor.groupInterval(unit='month', duration=1)#
Transform the
ee.ImageCollectioninto a list of smaller collection of the specified duration.For example using unit as “month” and duration as 1, the
ee.ImageCollectionwill be transformed into a list ofee.ImageCollectionwith eachee.ImageCollectioncontaining images for each month. Make sure the collection is filtered beforehand to reduce the number of images that needs to be processed.- Parameters:
- Returns:
A list of
ee.ImageCollectiongrouped by interval- 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") ) split = collection.geetools.groupInterval("month", 1) print(split.getInfo())