ee.ImageCollection.toArray
Converts 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.
Usage | Returns |
---|
ImageCollection.toArray() | Image |
Argument | Type | Details |
---|
this: collection | ImageCollection | Image collection to convert to an array image. Bands must have scalar values, not array values. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["Transforms an image collection into a single image where each pixel represents a 2D array containing data from all valid images in the collection."],["The 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."],["The resulting image's array element type adapts to accommodate the various data types present in the input image collection's bands."],["This operation is initiated using the `toArray()` method on an ImageCollection object, returning a new Image object."],["Input image collections should only contain bands with scalar values, not array values, for proper conversion."]]],[]]