sequence#
- classmethod geetools.ee_list.ListAccessor.sequence(ini, end, step=1)#
Create a sequence from ini to end by step.
Similar to
ee.List.sequence(), but ifend != lastitem then adds the end to the end of the resulting list.- Parameters:
- Returns:
A list of numbers corresponding to the sequence.
- Return type:
Examples
import ee, geetools from geetools.utils import initialize_documentation initialize_documentation() l = ee.List.geetools.sequence(0, 11, 2) l.getInfo()
[0, 2, 4, 6, 8, 10, 11]