Google Earth Engine(GEE)——reduceRegion 和reduceRegions的使用,以及产生结果为什么不同?
迪丽瓦拉
2024-04-28 13:24:04
0

我们都知道再GEE中我们使用reduceRegion 和reduceRegions来进行空间统计分析,而这两个函数分别对应的就是一个是对单一的矢量进行分析,另外一个就是对矢量集合来进行统计,但是今天我们除了要讨论以上的问题,还要分析以下,为什么两者直接计算出的结果是不同的,所以我们来看一下函数和代码:

函数:

reduceRegion(reducer, geometryscalecrscrsTransformbestEffortmaxPixelstileScale)

Apply a reducer to all the pixels in a specific region.

Either the reducer must have the same number of inputs as the input image has bands, or it must have a single input and will be repeated for each band.

Returns a dictionary of the reducer's outputs.

Arguments:

this:image (Image):

The image to reduce.

reducer (Reducer):

The reducer to apply.

geometry (Geometry, default: null):

The region over which to reduce data. Defaults to the footprint of the image's

相关内容