Stay organized with collections
Save and categorize content based on your preferences.
Cut an array along one or more axes.
Usage
Returns
Array.cut(position)
Array
Argument
Type
Details
this: array
Array
The array to cut.
position
List
Cut an array along one or more axes. The positions args specifies either a single value for each axis of the array, or -1, indicating the whole axis. The output will be an array that has the same dimensions as the input, with a length of 1 on each axis that was not -1 in the positions array.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-13 UTC."],[[["`Array.cut()` extracts a portion of an array along specified axes."],["It takes a `position` argument, a list indicating cut points on each axis."],["Using `-1` in the `position` list selects the entire axis."],["The output is a new array with reduced dimensions based on the cut points."],["`Array.cut()` is useful for slicing and dicing multi-dimensional arrays within Earth Engine."]]],[]]