zl程序教程

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

当前栏目

Google Earth Engine(GEE)——数组图像降维、组合美国西海岸为例!

Google美国数组 图像 Engine 组合 Earth GEE
2023-09-11 14:15:11 时间

要获得绿色图像,矩阵乘以 Landsat 5 图像的波段与绿色矩阵。为此,首先将多波段 Landsat 图像转换为“阵列图像”,其中每个像素都是Array波段值。将影像值转化为数组进行计算:

函数:

toArray(keysaxis)

以数组形式返回字典的数值。如果未指定键,则所有值都以字典键的自然顺序返回。默认“轴”为 0。

Returns numeric values of a dictionary as an array. If no keys are specified, all values are returned in the natural ordering of the dictionary's keys. The default 'axis' is 0.

Arguments:

this:dictionary (Dictionary)

keys (List, default: null)

axis (Integer, default: 0)

Returns: Array

matrixMultiply(image2)

返回 image1 和 image2 中每个匹配的波段对的矩阵乘法 A*B。如果 image1 或 image2 只有 1 个波段,则将其用于另一个图像中的所有波段。如果图像具有相同数量的波段,但名称不同,则它们按自然