ee.Array.pad

Pad an array to a given length. The pad value will be repeatedly appended to the array to extend it to given length along each axis. If the array is already as large or larger than a given length, it will remain unchanged along that axis.

UsageReturns
Array.pad(lengths, pad)Array
ArgumentTypeDetails
this: arrayArray

Array to pad.

lengthsList

A list of new lengths for each axis.

padNumber, default: 0

The value with which to pad the array.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!