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 Environment.

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())