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