お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、アクセスを維持するために
非商用目的での利用資格を確認する必要があります。2025 年 9 月 26 日までに確認が完了していない場合、アクセスが保留されることがあります。
ee.Number.lte
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
最初の値が 2 番目の値以下の場合にのみ 1 を返します。
| 引数 | タイプ | 詳細 |
|---|
これ: left | 数値 | 左側の値。 |
right | 数値 | 右側の値。 |
例
コードエディタ(JavaScript)
print('5 less than or equal to 10?', ee.Number(5).lte(ee.Number(10))); // 1
print('10 less than or equal to 5?', ee.Number(10).lte(ee.Number(5))); // 0
print('5 less than or equal to 5?', ee.Number(5).lte(ee.Number(5))); // 1
Python の設定
Python API とインタラクティブな開発での geemap の使用については、
Python 環境のページをご覧ください。
import ee
import geemap.core as geemap
Colab(Python)
display('5 less than or equal to 10?',
ee.Number(5).lte(ee.Number(10))) # 1
display('10 less than or equal to 5?',
ee.Number(10).lte(ee.Number(5))) # 0
display('5 less than or equal to 5?',
ee.Number(5).lte(ee.Number(5))) # 1
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-10-30 UTC。
[null,null,["最終更新日 2025-10-30 UTC。"],[],["The `lte` function compares two numbers and returns a numerical result. It assesses if the left-hand value (`this`) is less than or equal to the right-hand value (`right`). It returns `1` if this condition is true and `0` if it is false. The function's usage is `Number.lte(right)`. Both input values must be numbers. For instance, 5 `lte` 10 returns 1, while 10 `lte` 5 returns 0.\n"]]