公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.ImageCollection.toArray
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
将图片集合转换为二维数组的图片。在每个像素处,所有波段中都具有有效(未被遮盖)值的图像会沿数组的第一个轴按其在图像集合中出现的顺序排列。每个图片的波段都沿数组的第二个轴排列,顺序与波段在该图片中的显示顺序相同。数组元素类型将是每个波段类型的并集。
用法 | 返回 |
---|
ImageCollection.toArray() | 图片 |
参数 | 类型 | 详细信息 |
---|
此:collection | ImageCollection | 要转换为数组映像的映像集合。区间必须具有标量值,而不是数组值。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eTransforms an image collection into a single image where each pixel represents a 2D array containing data from all valid images in the collection.\u003c/p\u003e\n"],["\u003cp\u003eThe 2D array at each pixel is organized with images along the first axis and their respective bands along the second axis, preserving the original order.\u003c/p\u003e\n"],["\u003cp\u003eThe resulting image's array element type adapts to accommodate the various data types present in the input image collection's bands.\u003c/p\u003e\n"],["\u003cp\u003eThis operation is initiated using the \u003ccode\u003etoArray()\u003c/code\u003e method on an ImageCollection object, returning a new Image object.\u003c/p\u003e\n"],["\u003cp\u003eInput image collections should only contain bands with scalar values, not array values, for proper conversion.\u003c/p\u003e\n"]]],[],null,["# ee.ImageCollection.toArray\n\nConverts an image collection into an image of 2D arrays. At each pixel, the images that have valid (unmasked) values in all bands are laid out along the first axis of the array in the order they appear in the image collection. The bands of each image are laid out along the second axis of the array, in the order the bands appear in that image. The array element type will be the union of the types of each band.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------|---------|\n| ImageCollection.toArray`()` | Image |\n\n| Argument | Type | Details |\n|--------------------|-----------------|-------------------------------------------------------------------------------------------------|\n| this: `collection` | ImageCollection | Image collection to convert to an array image. Bands must have scalar values, not array values. |"]]