本代码的主要目的是进行长时间序列指定波段和指数计算后的图标加载,研究区才作用山西省,使用了多个MODIS数据集,分别提取EVI和ET等波段属性进行图表加载。这里会将计算出的指数加载在同一个图表,其它单独选择的波段单独加载到另一个图表上。这里的难点一是我们如何遍历:map函数的使用,另外一个是我们如何将多个不同影像集合放在一起。ee.ImageCollection.fromImages(获取多个单景影像使其变成一个影像集合)。我们首先看函数:
ee.Date.fromYMD(year, month, day, timeZone)
Returns a Date given year, month, day.
Arguments:
year (Integer)
month (Integer)
day (Integer)
timeZone (String, default: null):
The time zone (e.g. 'America/Los_Angeles'); defaults to UTC.
Returns: Date
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 +