ee.Array.ceil

要素ごとに、入力以上の最小の整数を計算します。

用途戻り値
Array.ceil()配列
引数タイプ詳細
これ: input配列入力配列。

コードエディタ(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 の設定

Python API とインタラクティブな開発での geemap の使用については、 Python 環境のページをご覧ください。

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]