ee.ImageCollection.toArrayPerBand

Concatenates multiple images into a single array image.

UsageReturns
ImageCollection.toArrayPerBand(axis, dropMasked)Image
ArgumentTypeDetails
this: collectionImageCollectionImages to concatenate. A separate concatenation is done per band, so all the images must have the same dimensionality and shape per band, except length along the concatenation axis.
axisInteger, default: 0Axis to concatenate along; must be at least 0 and at most the minimum dimension of any band in the collection.
dropMaskedBoolean, default: falseIf false (the default), the mask value of the output pixel is the minimum of the masks of the input pixels. If any image in the collection within the computation bounding box is completely masked at a pixel, that output pixel will be masked. As a result, every unmasked output pixel array will have the same size. If true, the mask value of the output pixel is the maximum of the mask of the inputs. Completely masked images at that pixel are ignored and do not contribute data to the output array. The output arrays will therefore not necessarily have the same size for each pixel.