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