Google Earth Engine(GEE)——如何建立一个逐日的时序图表chart用map进行遍历

很多时候我们需要对某一个区域,建立一个逐日的时序图表,而我们进行每一日的分析,必须要循环,而循环这里要用map.我们关键就是要如何使用map,就是先要建立一个序列,这个序列就是要循环的次数,然后我们所使用的函数进行要循环的每一次。

这个公式:

序列变量.map(function({要循环的过程}))

 filterDate(start_date,ee.Date(start_date).advance(x,'day'))

这里我们需要有一个时间筛选,主要是结束的时间,结束的时间是按照开始时间,然后渐渐的往前一天。

函数:

ee.List.sequence(start, endstepcount)

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

猜你喜欢

转载自blog.csdn.net/qq_31988139/article/details/130449460