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 環境頁面,瞭解 Python API 和如何使用 geemap 進行互動式開發。

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