ee.FeatureCollection.aggregate_histogram

Bir koleksiyondaki nesnelerin belirli bir özelliği üzerinde toplama işlemi yaparak seçilen özelliğin histogramını hesaplar.

Kullanımİadeler
FeatureCollection.aggregate_histogram(property)Sözlük
Bağımsız DeğişkenTürAyrıntılar
bu: collectionFeatureCollectionÜzerinde toplama işlemi yapılacak koleksiyon.
propertyDizeKoleksiyonun her öğesinden kullanılacak özellik.

Örnekler

Kod Düzenleyici (JavaScript)

// 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

Python kurulumu

Python API'si ve etkileşimli geliştirme için geemap kullanımı hakkında bilgi edinmek üzere Python Ortamı sayfasına bakın.

import ee
import geemap.core as geemap

Colab (Python)

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