ee.Number.bitwiseOr

คำนวณบิตไวส์ OR ของค่าอินพุต

การใช้งานการคืนสินค้า
Number.bitwiseOr(right)ตัวเลข
อาร์กิวเมนต์ประเภทรายละเอียด
ดังนี้ leftตัวเลขค่าด้านซ้าย
rightตัวเลขค่าทางด้านขวา

ตัวอย่าง

โปรแกรมแก้ไขโค้ด (JavaScript)

/**
 * Unsigned 8-bit type example.
 *
 * 25 as binary:    00011001
 * 21 as binary:    00010101
 * Either digit 1?: 00011101
 *
 * 00011101 is unsigned 8-bit binary for 29.
 */

print(ee.Number(25).bitwiseOr(21));

การตั้งค่า Python

ดูข้อมูลเกี่ยวกับ Python API และการใช้ geemap เพื่อการพัฒนาแบบอินเทอร์แอกทีฟได้ที่หน้า สภาพแวดล้อม Python

import ee
import geemap.core as geemap

Colab (Python)

"""Unsigned 8-bit type example.

25 as binary:    00011001
21 as binary:    00010101
Either digit 1?: 00011101

00011101 is unsigned 8-bit binary for 29.
"""

print(ee.Number(25).bitwiseOr(21).getInfo())