ee.ImageCollection.toArray
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Konvertiert eine Bildsammlung in ein Bild mit 2D-Arrays. An jedem Pixel werden die Bilder, die in allen Bändern gültige (nicht maskierte) Werte haben, entlang der ersten Achse des Arrays in der Reihenfolge angeordnet, in der sie in der Bildsammlung erscheinen. Die Bänder der einzelnen Bilder werden entlang der zweiten Achse des Arrays angeordnet, in der Reihenfolge, in der die Bänder im jeweiligen Bild erscheinen. Der Array-Elementtyp ist die Vereinigung der Typen der einzelnen Bänder.
Nutzung | Ausgabe |
---|
ImageCollection.toArray() | Bild |
Argument | Typ | Details |
---|
So gehts: collection | ImageCollection | Bildsammlung, die in ein Array-Bild konvertiert werden soll. Bereiche müssen skalare Werte und keine Array-Werte haben. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["\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. |"]]