chunked#
- geetools.ee_list.ListAccessor.chunked(parts)#
Break a
ee.Listinto lists of length parts.- Parameters:
- Returns:
a list of lists.
- Return type:
Examples
import ee, geetools from geetools.utils import initialize_documentation initialize_documentation() l = ee.List([1,2,3,4,5,6,7,8,9]) l = l.geetools.chunked(3) l.getInfo()
[[1, 2, 3], [4, 5, 6], [7, 8, 9]]