ee.FeatureCollection.aggregate_histogram

নির্বাচিত সম্পত্তির হিস্টোগ্রাম গণনা করে একটি সংগ্রহে বস্তুর প্রদত্ত সম্পত্তির উপর সমষ্টি।

ব্যবহার রিটার্নস
FeatureCollection. aggregate_histogram (property) অভিধান
যুক্তি টাইপ বিস্তারিত
এই: collection ফিচার কালেকশন সংগ্রহ ওভার সমষ্টি.
property স্ট্রিং সংগ্রহের প্রতিটি উপাদান থেকে ব্যবহার করার জন্য সম্পত্তি।

উদাহরণ

কোড এডিটর (জাভাস্ক্রিপ্ট)

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

print('Histogram of power plant capacities (MW)',
      fc.aggregate_histogram('capacitymw'));  // Dictionary

পাইথন সেটআপ

পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।

import ee
import geemap.core as geemap

Colab (পাইথন)

from pprint import pprint

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

print('Histogram of power plant capacities (MW):')
pprint(fc.aggregate_histogram('capacitymw').getInfo())  # Dictionary