Google Earth Engine(GEE)——计算1990-2020年森林损失量面积并导出表格

这次实验的目标是1990-2020年几个矢量集合当中的森林损失量,用到的函数:

ee.Reducer.frequencyHistogram()

Returns a Reducer that returns a (weighted) frequency table of its inputs.

返回一个返回其输入的(加权)频率表的Reducer。

No arguments.

Returns: Reducer

forEachBand(image)

Creates a Reducer by combining a copy of the given reducer for each band in the given image, using the band names as output names.

创建一个Reducer,为给定图像中的每一个波段组合一个给定的Reducer的副本,使用波段名称作为输出名称。

Arguments:

this:reducer (Reducer)

image (Image)

Returns: Reducer

研究区

代码:

//样本
var community_lands = ee.FeatureCollection("projects

猜你喜欢

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