お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、アクセスを維持するために
非商用目的での利用資格を確認する必要があります。2025 年 9 月 26 日までに確認が完了していない場合、アクセスが保留されることがあります。
ee.Array.floor
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
要素ごとに、入力以下の最大の整数を計算します。
例
コードエディタ(JavaScript)
// Positive numbers.
print('Floor for 2.1', ee.Array([2.1]).floor()); // 2
print('Floor for 2.5', ee.Array([2.5]).floor()); // 2
print('Floor for 2.9', ee.Array([2.9]).floor()); // 2
// Negative numbers.
print('Floor for -2.1', ee.Array([-2.1]).floor()); // -3
print('Floor for -2.5', ee.Array([-2.5]).floor()); // -3
print('Floor for -2.9', ee.Array([-2.9]).floor()); // -3
// Example with more than one number in the input array.
print('Floor for [2.1, -2.1]', ee.Array([2.1, -2.1]).floor()); // [2, -3]
Python の設定
Python API とインタラクティブな開発での geemap の使用については、
Python 環境ページをご覧ください。
import ee
import geemap.core as geemap
Colab(Python)
# Positive numbers.
display('Floor for 2.1:', ee.Array([2.1]).floor()) # 2
display('Floor for 2.5:', ee.Array([2.5]).floor()) # 2
display('Floor for 2.9:', ee.Array([2.9]).floor()) # 2
# Negative numbers.
display('Floor for -2.1:', ee.Array([-2.1]).floor()) # -3
display('Floor for -2.5:', ee.Array([-2.5]).floor()) # -3
display('Floor for -2.9:', ee.Array([-2.9]).floor()) # -3
# Example with more than one number in the input array.
display('Floor for [2.1, -2.1]:', ee.Array([2.1, -2.1]).floor()) # [2, -3]
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-11-18 UTC。
[null,null,["最終更新日 2025-11-18 UTC。"],[],["The `Array.floor()` method calculates the floor of each element within an input array. It operates element-wise, determining the largest integer that is less than or equal to each element. The method takes a single argument: the input array. The return value is a new array containing the floor of each corresponding element from the input. The method acts on arrays.\n"]]