ee.Image.toArray

Stay organized with collections Save and categorize content based on your preferences.
Concatenates pixels from each band into a single array per pixel. The result will be masked if any input bands are masked.

UsageReturns
Image.toArray(axis)Image
ArgumentTypeDetails
this: imageImageImage of bands to convert to an array per pixel. Bands must have scalar pixels, or array pixels with equal dimensionality.
axisInteger, default: 0Axis to concatenate along; must be at least 0 and at most the dimension of the inputs. If the axis equals the dimension of the inputs, the result will have 1 more dimension than the inputs.