공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.Reducer.combine
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
두 리듀서를 병렬로 실행하는 리듀서를 만듭니다. 결합된 리듀서의 출력은 reducer1의 출력 다음에 reducer2의 출력이 나오며, reducer2의 출력 이름에는 지정된 문자열이 접두사로 붙습니다.
sharedInputs가 true이면 리듀서의 입력 수가 동일해야 하며 결합된 리듀서의 입력 수가 일치합니다. false이면 결합된 리듀서의 입력은 reducer1의 입력과 reducer2의 입력이 차례로 이어집니다.
사용 | 반환 값 |
---|
Reducer.combine(reducer2, outputPrefix, sharedInputs) | 감소기 |
인수 | 유형 | 세부정보 |
---|
다음과 같은 경우: reducer1 | 감소기 | 첫 번째 리듀서입니다. |
reducer2 | 감소기 | 두 번째 감소기입니다. |
outputPrefix | 문자열, 기본값: '' | reducer2의 출력 이름 접두사입니다. |
sharedInputs | 불리언, 기본값: false | 리듀서가 입력을 공유하는지 여부입니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eCreates a combined Reducer by running two reducers (reducer1 and reducer2) concurrently, with the outputs of reducer1 preceding those of reducer2.\u003c/p\u003e\n"],["\u003cp\u003eOutputs of reducer2 are prefixed with a specified string to differentiate them from reducer1's outputs.\u003c/p\u003e\n"],["\u003cp\u003eInput handling for the combined reducer is configurable: if \u003ccode\u003esharedInputs\u003c/code\u003e is true, both reducers utilize the same inputs; otherwise, the combined reducer's inputs are those of reducer1 followed by those of reducer2.\u003c/p\u003e\n"],["\u003cp\u003eIt can be invoked using \u003ccode\u003eReducer.combine()\u003c/code\u003e method, accepting reducer2, output prefix, and shared input preference as arguments.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.combine\n\nCreates a Reducer that runs two reducers in parallel. The combined reducer's outputs will be those of reducer1 followed by those of reducer2, where the output names of reducer2 are prefixed with the given string.\n\n\u003cbr /\u003e\n\nIf sharedInputs is true, the reducers must have the same number of inputs, and the combined reducer's will match them; if it is false, the inputs of the combined reducer will be those of reducer1 followed by those of reducer2.\n\n| Usage | Returns |\n|------------------------------------------------------------------|---------|\n| Reducer.combine`(reducer2, `*outputPrefix* `, `*sharedInputs*`)` | Reducer |\n\n| Argument | Type | Details |\n|------------------|-------------------------|-------------------------------------|\n| this: `reducer1` | Reducer | The first reducer. |\n| `reducer2` | Reducer | The second reducer. |\n| `outputPrefix` | String, default: \"\" | Prefix for reducer2's output names. |\n| `sharedInputs` | Boolean, default: false | Whether the reducers share inputs. |"]]