Google Earth Engine——Layer error: Description length exceeds maximum.解决办法

问题:

 图片上的问题主要在于imag5.sum().clip(table),

另外,如果是imagecollection的话不能直接裁剪,不许经过一系列运算,也就是镶嵌mosaic()或者.first()编程一张影像才可以进行裁剪和reduceRegion()等一些列最大值、最小值、平均值的计算

Map.addLayer(eeObject, visParamsnameshownopacity)

Adds a given EE object to the map as a layer.

Returns the new map layer.

Arguments:

eeObject (Collection|Feature|Image|RawMapId):

The object to add to the map.

visParams (FeatureVisualizationParameters|ImageVisualizationParameters, optional):

The visualization parameters. For Images and ImageCollection, see ee.data.getMapId for valid parameters. For Features and FeatureCollections, the only supported key is "color", as a CSS 3.0 color string or a hex string in "RRGGBB" format. Ignored when eeObject is a map ID.

name (String, optional):

The name of the layer. Defaults to "Layer N".

shown (Boolean, optional):

A flag indicating whether the layer should be on by default.

一个标志,表示该层是否应该默认打开。

opacity (Number, optional):

The layer's opacity represented as a number between 0 and 1. Defaults to 1.

图层的不透明度,用0到1之间的数字表示,默认为1。

Returns: ui.Map.Layer

这里一般只选择用前三个参数就够用了! 

Map.addLayer(result_ndvi, visParam, 'Matched study area ndvi image method2');

result_ndvi,争取将所有的参数都在外面计算完成,完了直接放变量在这个里面,避免计算超限等等不必要的错误。

大家在文末给个5星,谢谢:

2021年「博客之星」参赛博主:此星光明-CSDN社区

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

此星光明

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值