GEE案例——利用sentinel-2影像进行逐月各波段像元值的统计(均值)以2023年为例(包含图表可视化和CSV表格下载功能)

简介

本教程案例的主要目标是实现研究区多个点或者是多个矢量斑块集合中影像像元值的批量逐月统计,这里我们利用遍历函数来实现每个月的统计,reduceregions函数来统计各波段的像元值,最后分别下载处理好的影像和像元值统计的表格,方便本地出图。

函数

ee.List.sequence(start, endstepcount)

Generate a sequence of numbers from start to end (inclusive) in increments of step, or in count equally-spaced increments. If end is not specified it is computed from start + step * count, so at least one of end or count must be specified.

生成一个从开始到结束(包括结束)的数字序列,以步长为增量,或以计数为等距增量。如果未指定结束,则从开始 + 步 * 计数计算,因此必须指定结束或计数中的至少一个。

Arguments:

start (Number)

end (Number, default: null)

step (Number, default: 1)

count (Integer, default: null)

Returns: List

evaluate(callback)

Asynchronously retrieves the value of this object from the server and passes it to the provided callback function.

异步从服务器检索该对象的值,并将其传递给所提供的回调函数。

Arguments:

this:computedobject (ComputedObject):

The ComputedObject instance.

callback (Function):

A function of the form function(success, failure), called when the server returns an answer. If the request succeeded, the success argument contains the evaluated result. If the request failed, the failure argument will contains an error message.

reduceRegions(collection, reducer, scalecrscrsTransformtileScale)

Apply a reducer over the a

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

此星光明

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

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

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

打赏作者

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

抵扣说明:

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

余额充值