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]