ee.Image.arrayFlatten

Stay organized with collections Save and categorize content based on your preferences.
Converts a single band image of equal-shape multidimensional pixels to an image of scalar pixels, with one band for each element of the array.

UsageReturns
Image.arrayFlatten(coordinateLabels, separator)Image
ArgumentTypeDetails
this: imageImageImage of multidimensional pixels to flatten.
coordinateLabelsListName of each position along each axis. For example, 2x2 arrays with axes meaning 'day' and 'color' could have labels like [['monday', 'tuesday'], ['red', 'green']], resulting in band names'monday_red', 'monday_green', 'tuesday_red', and 'tuesday_green'.
separatorString, default: "_"Separator between array labels in each band name.