ee.FeatureCollection.aggregate_max

Agrega uma determinada propriedade dos objetos em uma coleção, calculando o máximo dos valores da propriedade selecionada.

UsoRetorna
FeatureCollection.aggregate_max(property)
ArgumentoTipoDetalhes
isso: collectionFeatureCollectionA coleção para agregar.
propertyStringA propriedade a ser usada de cada elemento da coleção.

Exemplos

Editor de código (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

Configuração do Python

Consulte a página Ambiente Python para informações sobre a API Python e como usar geemap para desenvolvimento interativo.

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