简介
本教程案例的主要目标是实现研究区多个点或者是多个矢量斑块集合中影像像元值的批量逐月统计,这里我们利用遍历函数来实现每个月的统计,reduceregions函数来统计各波段的像元值,最后分别下载处理好的影像和像元值统计的表格,方便本地出图。
函数
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, default: 1)
count (Integer, default: null)
Returns: List
evaluate(callback)
Asynchronously retrieves the value of this object from the server and passes it to the provided callback function.
异步从服务器检索该对象的值,并将其传递给所提供的回调函数。
Arguments:
this:computedobject (ComputedObject):
The ComputedObject instance.
callback (Function):
A function of the form function(success, failure), called when the server returns an answer. If the request succeeded, the success argument contains the evaluated result. If the request failed, the failure argument will contains an error message.
reduceRegions(collection, reducer, scale, crs, crsTransform, tileScale)
Apply a reducer over the a