공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.Array.pad
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
배열을 지정된 길이로 패딩합니다. 패드 값은 각 축을 따라 지정된 길이로 확장하기 위해 배열에 반복적으로 추가됩니다. 배열이 이미 지정된 길이만큼 크거나 그보다 큰 경우 해당 축을 따라 변경되지 않습니다.
사용 | 반환 값 |
---|
Array.pad(lengths, pad) | 배열 |
인수 | 유형 | 세부정보 |
---|
다음과 같은 경우: array | 배열 | 패딩할 배열입니다. |
lengths | 목록 | 각 축의 새 길이 목록입니다. |
pad | 숫자, 기본값: 0 | 배열을 패딩할 값입니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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. |"]]