ee.Array.lt

מחזירה 1 אם ורק אם הערך הראשון קטן מהערך השני, על בסיס השוואה בין כל רכיב ברכיב המקביל.

שימושהחזרות
Array.lt(right)מערך
ארגומנטסוגפרטים
זה: leftמערךהערך בצד ימין.
rightמערךהערך בצד שמאל.

דוגמאות

עורך הקוד (JavaScript)

var empty = ee.Array([], ee.PixelType.int8());
print(empty.lt(empty));  // []

print(ee.Array([0]).lt([0]));  // [0]
print(ee.Array([1]).lt([2]));  // [1]
print(ee.Array([2]).lt([1]));  // [0]

print(ee.Array([-1, 0, 1]).lt([-2, 1, 0]));  // [0,1,0]

הגדרת Python

מידע על Python API ועל שימוש ב-geemap לפיתוח אינטראקטיבי מופיע בדף Python Environment.

import ee
import geemap.core as geemap

Colab (Python)

empty = ee.Array([], ee.PixelType.int8())
display(empty.lt(empty))  # []

display(ee.Array([0]).lt([0]))  # [0]
display(ee.Array([1]).lt([2]))  # [1]
display(ee.Array([2]).lt([1]))  # [0]

display(ee.Array([-1, 0, 1]).lt([-2, 1, 0]))  # [0, 1, 0]