geetools.ListAccessor.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:
ini (geetools.types.ee_int) – The initial value of the sequence.
end (geetools.types.ee_int) – The final value of the sequence.
step (geetools.types.ee_int) – The step of the sequence.
- Returns:
A list of numbers corresponding to the sequence.
- Return type:
ee.List
Examples
import ee, geetools ee.Initialize() l = ee.List.geetools.sequence(0, 10, 2) l.getInfo()