Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Array.divide
Stay organized with collections
Save and categorize content based on your preferences.
On an element-wise basis, divides the first value by the second, returning 0 for division by 0.
Usage | Returns | Array.divide(right) | Array |
Argument | Type | Details | this: left | Array | The left-hand value. |
right | Array | The right-hand value. |
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\u003e\u003ccode\u003eArray.divide\u003c/code\u003e performs element-wise division between two arrays.\u003c/p\u003e\n"],["\u003cp\u003eThe method handles division by zero gracefully by returning 0 in such cases.\u003c/p\u003e\n"],["\u003cp\u003eIt returns a new array containing the results of the division.\u003c/p\u003e\n"]]],["Divides elements of the `left` array by corresponding elements of the `right` array. If division by zero occurs, the result is zero. The operation is element-wise and returns a new array. The `left` and `right` arrays are the operands, with `left` being the dividend and `right` being the divisor in the division operation.\n"],null,["# ee.Array.divide\n\nOn an element-wise basis, divides the first value by the second, returning 0 for division by 0.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------|---------|\n| Array.divide`(right)` | Array |\n\n| Argument | Type | Details |\n|--------------|-------|-----------------------|\n| this: `left` | Array | The left-hand value. |\n| `right` | Array | The right-hand value. |"]]