お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ee.Array.pad
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
配列を指定された長さにパディングします。パディング値は、各軸に沿って指定された長さに拡張するために、配列に繰り返し追加されます。配列がすでに指定された長さ以上である場合、その軸に沿って変更されません。
用途 | 戻り値 |
---|
Array.pad(lengths, pad) | 配列 |
引数 | タイプ | 詳細 |
---|
これ: array | 配列 | パディングする配列。 |
lengths | リスト | 各軸の新しい長さのリスト。 |
pad | 数値、デフォルト: 0 | 配列をパディングする値。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003e\u003ccode\u003eArray.pad\u003c/code\u003e extends an array to specified lengths along each axis using a provided pad value.\u003c/p\u003e\n"],["\u003cp\u003eIf the array's existing length is equal to or greater than the given length for an axis, it remains unmodified along that axis.\u003c/p\u003e\n"],["\u003cp\u003eThe padding operation utilizes a specified pad value, defaulting to 0, which is appended to the array.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eArray.pad\u003c/code\u003e takes the array, target lengths, and pad value as input and returns the modified array.\u003c/p\u003e\n"]]],["The core function pads an array to specified lengths along each axis by appending a designated `pad` value. If the array's dimension along any axis is already greater than or equal to the given length, it remains unmodified. The method `Array.pad` takes a list of `lengths` and a `pad` value (defaulting to 0) as arguments. It returns the modified, padded `array`.\n"],null,["# ee.Array.pad\n\nPad an array to a given length. The pad value will be repeatedly appended to the array to extend it to given length along each axis. If the array is already as large or larger than a given length, it will remain unchanged along that axis.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------|---------|\n| Array.pad`(lengths, `*pad*`)` | Array |\n\n| Argument | Type | Details |\n|---------------|--------------------|----------------------------------------|\n| this: `array` | Array | Array to pad. |\n| `lengths` | List | A list of new lengths for each axis. |\n| `pad` | Number, default: 0 | The value with which to pad the array. |"]]