Google Earth Engine 中的图像统计数据和 R 中的 rgee 包?

问题描述

我正在尝试计算 Google Earth Engine 中图像的县级所有像素的平均值,并且正在使用 R Studio 中的 rgee 包。

我已尝试按照此处的示例进行操作:https://github.com/csaybar/rgee/blob/examples/image/image_stats_by_band.R

代码运行但导致在特征$几何$坐标、特征$属性等的R中打印出很长的内容,我只想要波段的平均值,并希望在后续计算中使用平均值.我想我想要打印的最后一行中的一个值:$features[[1]]$properties$data

#GY16 is an image covering a U.S. state with 1 band and I would like to calculate the mean of that image at the county level. shp1 is the county geometry.  

geometry <- shp1
means <- GY16$reduceRegions(
  collection = geometry,reducer = ee$Reducer$mean()$forEachBand(GY16),scale=10
)

print(means$getInfo())

任何建议表示赞赏。谢谢!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)