Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Array.length
Stay organized with collections
Save and categorize content based on your preferences.
Returns a 1-D ee.Array containing the length of each dimension of the given ee.Array.
Usage | Returns | Array.length() | Array |
Argument | Type | Details | this: array | Array | The array from which to extract the axis lengths. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["\u003cp\u003eReturns a 1-D array containing the length of each dimension of a given array.\u003c/p\u003e\n"],["\u003cp\u003eThis function takes an array as input and provides the size of each of its dimensions.\u003c/p\u003e\n"],["\u003cp\u003eUsage involves calling the \u003ccode\u003elength()\u003c/code\u003e function on an existing ee.Array object.\u003c/p\u003e\n"]]],["The `Array.length()` method calculates and returns the lengths of each dimension within a given array. It takes one argument, `array`, which represents the input array from which the dimensional lengths are determined. The method's output is a 1-D array containing these length values. Essentially, it provides the size of the array along each of its axes.\n"],null,["# ee.Array.length\n\nReturns a 1-D ee.Array containing the length of each dimension of the given ee.Array.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------|---------|\n| Array.length`()` | Array |\n\n| Argument | Type | Details |\n|---------------|-------|---------------------------------------------------|\n| this: `array` | Array | The array from which to extract the axis lengths. |"]]