Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
[[["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 2023-10-06 UTC."],[[["\u003cp\u003e\u003ccode\u003eArray.ceil()\u003c/code\u003e computes the smallest integer greater than or equal to each element in the input array.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns a new array with the ceiling values of the original elements.\u003c/p\u003e\n"],["\u003cp\u003eIt operates on an element-wise basis, meaning it applies the ceiling operation to each individual element of the input array.\u003c/p\u003e\n"],["\u003cp\u003eIf the input is an empty array, it returns an empty array.\u003c/p\u003e\n"]]],["The `ceil()` method computes the ceiling of each element in an input array, returning a new array. The function determines the smallest integer greater than or equal to each input element. It operates element-wise. If the input array is empty, an explicit PixelType is required. The input array can contain positive and negative numbers, as shown with the provided examples. `Array.ceil()` method returns a new Array.\n"],null,["On an element-wise basis, computes the smallest integer greater than or equal to the input.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------|---------|\n| Array.ceil`()` | Array |\n\n| Argument | Type | Details |\n|---------------|-------|------------------|\n| this: `input` | Array | The input array. |\n\nExamples\n\nCode Editor (JavaScript) \n\n```javascript\n// Requires an explicit PixelType if no data.\nprint(ee.Array([], ee.PixelType.int8()).ceil()); // []\n\nprint(ee.Array([-1.1]).ceil()); // [-1]\nprint(ee.Array([-0.1]).ceil()); // [0]\nprint(ee.Array([0]).ceil()); // [0]\nprint(ee.Array([0.1]).ceil()); // [1]\nprint(ee.Array([1.1]).ceil()); // [2]\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\nColab (Python) \n\n```python\n# Requires an explicit PixelType if no data.\ndisplay(ee.Array([], ee.PixelType.int8()).ceil()) # []\n\ndisplay(ee.Array([-1.1]).ceil()) # [-1]\ndisplay(ee.Array([-0.1]).ceil()) # [0]\ndisplay(ee.Array([0]).ceil()) # [0]\ndisplay(ee.Array([0.1]).ceil()) # [1]\ndisplay(ee.Array([1.1]).ceil()) # [2]\n```"]]