很多时候我们需要对某一个区域,建立一个逐日的时序图表,而我们进行每一日的分析,必须要循环,而循环这里要用map.我们关键就是要如何使用map,就是先要建立一个序列,这个序列就是要循环的次数,然后我们所使用的函数进行要循环的每一次。
这个公式:
序列变量.map(function({要循环的过程}))
filterDate(start_date,ee.Date(start_date).advance(x,'day'))
这里我们需要有一个时间筛选,主要是结束的时间,结束的时间是按照开始时间,然后渐渐的往前一天。
函数:
ee.List.sequence(start, end, step, count)
Generate a sequence of numbers from start to end (inclusive) in increments of step, or in count equally-spaced increments. If end is not specified it is computed from start + step * count, so at least one of end or count must be specified.
Arguments:
start (Number)
end (Number, default: null)
step (Number