zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Google Earth Engine(GEE)——河流的缓冲区

Google Engine Earth GEE 缓冲区
2023-09-11 14:15:11 时间

这个影像的代码主要是想呈现,提取一个堤坝周边的缓冲区,这里我们暂时智能做到并将河流去掉并无法确切的给出河流的缓冲区

    // 我们想把河的另一边排除在外,在那里我们不需要任何数据。
    // 然而,有时堤坝两边没有水,那么我们只需要普通的缓冲区。
    // 因此,我们将距离水面较短的区域进行屏蔽,并在堤坝周围设置一个常规缓冲区。
    // 这意味着也要取消堤坝的屏蔽,使其只有河的另一边的值,否则整个图像都会被屏蔽。

本文用到的函数:

updateMask(mask)

Updates an image's mask at all positions where the existing mask is not zero. The output image retains the metadata and footprint of the input image.

Arguments:

this:image (Image):

Input image.

mask (Image):

New mask for the image, as a floating-point value in the range [0, 1] (invalid = 0, valid = 1). If this image has a single band, it is used for all bands in the input image; otherwise, must have the same number of bands as the input image.

Returns: Image

updateMask(mask)
在所有现有遮罩不为零的位置上更新图像的遮罩。输出的图像保留了输入图像的元数据和足迹。

参数。
this:image (Im