ee.Array.reshape

Reshapes an array to a new list of dimension lengths.

UsageReturns
Array.reshape(shape)Array
ArgumentTypeDetails
this: arrayArray

Array to reshape.

shapeArray

New shape to which arrays are converted. If one component of the shape is the special value -1, the size of that dimension is computed so that the total size remains constant. In particular, a shape of [-1] flattens into 1-D. At most one component of shape can be -1.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!