本案例的主要目的是实现逐月降水数据的下载和直方图可视化展示。本文主要用到的循环不是for而是用到map函数,用于遍历年和月,每一个map中都是由一个函数组成,而作用于map的对象就是集合,文中举例了如何建立函数裁剪影像,如何用双map函数实现逐月的提取等,以及最终直方图的展示。。。
函数:
byte()
Casts the input value to an unsigned 8-bit integer.
Arguments:
this:value (Image):
The image to which the operation is applied.
Returns: Image
建立一个影像集合
ee.ImageCollection.fromImages(images)
Returns the image collection containing the given images.
Arguments:
images (List):
The images to include in the collection.
Returns: ImageCollection
flatten()
Flattens collections of collections.
Arguments:
this:collection (FeatureCollection):
The input collection of collections.</