Google Earth Engine (GEE) ——统计不同地表水数据集的差异面积

本文我们用eq和neq进行分析,这里我们可以用来查看两者相同和不同的区域,然后我们要用unmask和selfmask函数进行分析结果。本文先用0然后unmask空的区域,然后我们就可以得到一个完整的影像,这里我们影像就完整了,然后用前影像和现在完整的影像寻找差异,最后我们就可以selfmask掩膜掉空值区域,我们查看函数:

unmask(valuesameFootprint)

Replaces mask and value of the input image with the mask and value of another image at all positions where the input mask is zero. The output image retains the metadata of the input image. By default, the output image also retains the footprint of the input, but setting sameFootprint to false allows to extend the footprint.

在输入掩码为零的所有位置用另一个图像的掩码和值替换输入图像的掩码和值。输出图像保留输入图像的元数据。默认情况下,输出图像还保留输入的足迹,但将 sameFootprint 设置为 false 允许扩展足迹。

Arguments:

this:input (Image):

Input image.

value (Image, default: null):

New value and mask for the masked pixels of the input image. If not specified, defaults to con

猜你喜欢

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