Google Earth Engine(GEE)——GEE中array数组的基本计算练习

很多时候我们需要在GEE中计算数组,或者按照数组的形式参与计算,这里我们就需要掌握以下的一些函数,然后可以通过相应的代码实现加减乘除以及一些其它的计算,这里包括一些数组的转至等等。首先看看函数:

ee.Array(values, pixelType)

Returns an array with the given coordinates.

Arguments:

values (Object):

An existing array to cast, or a number/list of numbers/nested list of numbers of any depth to create an array from. For nested lists, all inner arrays at the same depth must have the same length, and numbers may only be present at the deepest level.

pixelType (PixelType, default: null):

The type of each number in the values argument. If the pixel type is not provided, it will be inferred from the numbers in 'values'. If there aren't any numbers in 'values', this type must be provided.

Returns: Array

add(right)

On an element-wise basis, ad

猜你喜欢

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