ee.ImageCollection.toArray
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Przekształca kolekcję obrazów w obraz tablic dwuwymiarowych. W przypadku każdego piksela obrazy, które mają prawidłowe (niezamaskowane) wartości we wszystkich pasmach, są ułożone wzdłuż pierwszej osi tablicy w kolejności, w jakiej występują w kolekcji obrazów. Pasma każdego obrazu są ułożone wzdłuż drugiej osi tablicy w kolejności, w jakiej występują w tym obrazie. Typ elementu tablicy będzie sumą typów każdej z pasm.
Wykorzystanie | Zwroty |
---|
ImageCollection.toArray() | Obraz |
Argument | Typ | Szczegóły |
---|
to: collection | ImageCollection | Kolekcja obrazów do przekonwertowania na obraz tablicy. Przedziały muszą mieć wartości skalarne, a nie wartości tablicowe. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]