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 واستخدام 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