ee.FeatureCollection.aggregate_total_sd

Menggabungkan properti tertentu dari objek dalam koleksi, menghitung total simpangan baku nilai properti yang dipilih.

PenggunaanHasil
FeatureCollection.aggregate_total_sd(property)Angka
ArgumenJenisDetail
ini: collectionFeatureCollectionKoleksi yang akan digabungkan.
propertyStringProperti yang akan digunakan dari setiap elemen koleksi.

Contoh

Code Editor (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

Penyiapan Python

Lihat halaman Lingkungan Python untuk mengetahui informasi tentang Python API dan penggunaan geemap untuk pengembangan interaktif.

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