Google Earth Engine(GEE)——利用1000个随机样本点提取逐年NDVI值(最大值合成)——山东省为例

本文实验的目的,主要是通过设定随机样本点来获取每一个点的NDVI值或者你想进行其他波段的值都是可以的,只是波段运算不同而已。

本文实验所需要用到的函数:

ee.FeatureCollection.randomPoints(region, pointsseedmaxError)

Generates points that are uniformly random on the sphere, and within the given region.

在给定的区域内生成球面上均匀随机的点。

Arguments:

region (Geometry):

The region to generate points for.

points (Integer, default: 1000):

The number of points to generate.

seed (Long, default: 0):

A seed for the random number generator.

种子就是个序号,这个序号交给一个数列管理器,通过这个序号,你从管理器中取出一个数列,这个数列就是你通过那个序号得到的随机数。

maxError (ErrorMargin, optional):

The maximum amount of error tolerated when performing any necessary reprojection.

Returns: FeatureCollection

 下面的样本区域的统计,这里是一个集合collection为主,逐个点进行分别统计最后汇总在一起

猜你喜欢

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