GEE训练——可视化sentinel2影像中的图像数量count图层加载

简介

这里主要是我们需要可视化参与指定区域合成影像的数量分析,这里按照影像集合中每一景影像的天数day获取每一景影像,然后获取其数量,然后过计算所有匹配波段堆栈中每个像素处具有有效掩模的图像数量来减少图像集合。 波段按名称匹配。最后就可以查看出研究区影像拼接后的数量。

函数

getRelative(unit, inUnit, timeZone)
Returns the specified (0-based) unit of this date relative to a larger unit, e.g. getRelative('day', 'year') returns a value between 0 and 365.

Arguments:
this:date (Date)
unit (String):
One of 'month' 'week', 'day', 'hour', 'minute', or 'second'.

inUnit (String):
One of 'year', 'month' 'week', 'day', 'hour', or 'minute'.

timeZone (String, default: null):
The time zone (e.g. 'America/Los_Angeles'); defaults to UTC.

Returns: Long

ee.Image.constant(value)
Generate

猜你喜欢

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