ee.ImageCollection.toArrayPerBand

Concatenates multiple images into a single array image. The result will be masked if any input is masked.

UsageReturns
ImageCollection.toArrayPerBand(axis)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.