sequence#

classmethod geetools.ListAccessor.sequence(ini, end, step=1)#

Create a sequence from ini to end by step.

Similar to ee.List.sequence, but if end != last item then adds the end to the end of the resuting list.

Parameters:
Returns:

A list of numbers corresponding to the sequence.

Return type:

ee.List

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]