Duyuru:
15 Nisan 2025'ten önce Earth Engine'i kullanmak için kaydedilen tüm ticari olmayan projelerin Earth Engine erişimini sürdürmek için
ticari olmayan uygunluğu doğrulaması gerekir.
ee.Array.ceil
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Giriş değerinden büyük veya bu değere eşit en küçük tam sayıyı öğe bazında hesaplar.
Kullanım | İadeler |
---|
Array.ceil() | Dizi |
Bağımsız Değişken | Tür | Ayrıntılar |
---|
bu: input | Dizi | Giriş dizisi. |
Örnekler
Kod Düzenleyici (JavaScript)
// Requires an explicit PixelType if no data.
print(ee.Array([], ee.PixelType.int8()).ceil()); // []
print(ee.Array([-1.1]).ceil()); // [-1]
print(ee.Array([-0.1]).ceil()); // [0]
print(ee.Array([0]).ceil()); // [0]
print(ee.Array([0.1]).ceil()); // [1]
print(ee.Array([1.1]).ceil()); // [2]
Python kurulumu
Python API'si ve etkileşimli geliştirme için geemap
kullanımı hakkında bilgi edinmek üzere
Python Ortamı sayfasına bakın.
import ee
import geemap.core as geemap
Colab (Python)
# Requires an explicit PixelType if no data.
display(ee.Array([], ee.PixelType.int8()).ceil()) # []
display(ee.Array([-1.1]).ceil()) # [-1]
display(ee.Array([-0.1]).ceil()) # [0]
display(ee.Array([0]).ceil()) # [0]
display(ee.Array([0.1]).ceil()) # [1]
display(ee.Array([1.1]).ceil()) # [2]
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-26 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,["# ee.Array.ceil\n\nOn 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--------\n\n### Code 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\n### Colab (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```"]]