ee.FeatureCollection.aggregate_total_sd

컬렉션에 있는 객체의 지정된 속성을 집계하여 선택한 속성 값의 총 표준 편차를 계산합니다.

사용반환 값
FeatureCollection.aggregate_total_sd(property)숫자
인수유형세부정보
다음과 같은 경우: collectionFeatureCollection집계할 컬렉션입니다.
property문자열컬렉션의 각 요소에서 사용할 속성입니다.

코드 편집기 (JavaScript)

// FeatureCollection of power plants in Belgium.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants')
             .filter('country_lg == "Belgium"');

print('Total std. deviation of power plant capacities (MW)',
      fc.aggregate_total_sd('capacitymw'));  // 462.9334545609107

Python 설정

Python API 및 geemap를 사용한 대화형 개발에 관한 자세한 내용은 Python 환경 페이지를 참고하세요.

import ee
import geemap.core as geemap

Colab (Python)

# FeatureCollection of power plants in Belgium.
fc = ee.FeatureCollection('WRI/GPPD/power_plants').filter(
    'country_lg == "Belgium"')

print('Total std. deviation of power plant capacities (MW):',
      fc.aggregate_total_sd('capacitymw').getInfo())  # 462.9334545609107