ee.FeatureCollection.aggregate_max

यह फ़ंक्शन, किसी कलेक्शन में मौजूद ऑब्जेक्ट की दी गई प्रॉपर्टी के हिसाब से एग्रीगेट करता है. साथ ही, चुनी गई प्रॉपर्टी की वैल्यू में से सबसे बड़ी वैल्यू का हिसाब लगाता है.

इस्तेमालरिटर्न
FeatureCollection.aggregate_max(property)
आर्ग्यूमेंटटाइपविवरण
यह: collectionFeatureCollectionवह कलेक्शन जिसके आधार पर एग्रीगेट करना है.
propertyस्ट्रिंगकलेक्शन के हर एलिमेंट से इस्तेमाल की जाने वाली प्रॉपर्टी.

उदाहरण

कोड एडिटर (JavaScript)

// FeatureCollection of power plants in Belgium.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants')
             .filter('country_lg == "Belgium"');

print('Max of power plant capacities (MW)',
      fc.aggregate_max('capacitymw'));  // 2910

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('Max of power plant capacities (MW):',
      fc.aggregate_max('capacitymw').getInfo())  # 2910