公告:所有在 
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。如果您在 2025 年 9 月 26 日之前未完成验证,您的访问权限可能会被暂停。
  
        
 
       
     
  
  
  
    
  
  
  
    
      ee.ImageCollection.aggregate_max
    
    
      
    
    
      
      使用集合让一切井井有条
    
    
      
      根据您的偏好保存内容并对其进行分类。
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
  
  
对集合中对象的指定属性进行汇总,计算所选属性的最大值。
| 用法 | 返回 | 
|---|
| ImageCollection.aggregate_max(property) |  | 
| 参数 | 类型 | 详细信息 | 
|---|
| 此: collection | FeatureCollection | 要汇总的集合。 | 
| property | 字符串 | 要从集合的每个元素中使用的属性。 | 
  
  
  示例
  
    
  
  
    
    
  
  
  
  
    
    
    
      代码编辑器 (JavaScript)
    
    
  // A Lansat 8 TOA image collection for a specific year and location.
var col = ee.ImageCollection("LANDSAT/LC08/C02/T1_TOA")
  .filterBounds(ee.Geometry.Point([-122.073, 37.188]))
  .filterDate('2018', '2019');
// An image property of interest, percent cloud cover in this case.
var prop = 'CLOUD_COVER';
// Use ee.ImageCollection.aggregate_* functions to fetch information about
// values of a selected property across all images in the collection. For
// example, produce a list of all values, get counts, and calculate statistics.
print('List of property values', col.aggregate_array(prop));
print('Count of property values', col.aggregate_count(prop));
print('Count of distinct property values', col.aggregate_count_distinct(prop));
print('First collection element property value', col.aggregate_first(prop));
print('Histogram of property values', col.aggregate_histogram(prop));
print('Min of property values', col.aggregate_min(prop));
print('Max of property values', col.aggregate_max(prop));
// The following methods are applicable to numerical properties only.
print('Mean of property values', col.aggregate_mean(prop));
print('Sum of property values', col.aggregate_sum(prop));
print('Product of property values', col.aggregate_product(prop));
print('Std dev (sample) of property values', col.aggregate_sample_sd(prop));
print('Variance (sample) of property values', col.aggregate_sample_var(prop));
print('Std dev (total) of property values', col.aggregate_total_sd(prop));
print('Variance (total) of property values', col.aggregate_total_var(prop));
print('Summary stats of property values', col.aggregate_stats(prop));
// Note that if the property is formatted as a string, min and max will
// respectively return the first and last values according to alphanumeric
// order of the property values.
var propString = 'LANDSAT_SCENE_ID';
print('List of property values (string)', col.aggregate_array(propString));
print('Min of property values (string)', col.aggregate_min(propString));
print('Max of property values (string)', col.aggregate_max(propString));
  
    
  
  
    
  
  
  
  
    
  
    
  Python 设置
  如需了解 Python API 和如何使用 geemap 进行交互式开发,请参阅 
    Python 环境页面。
  import ee
import geemap.core as geemap
  
    
    
      Colab (Python)
    
    
  # A Lansat 8 TOA image collection for a specific year and location.
col = ee.ImageCollection("LANDSAT/LC08/C02/T1_TOA").filterBounds(
    ee.Geometry.Point([-122.073, 37.188])).filterDate('2018', '2019')
# An image property of interest, percent cloud cover in this case.
prop = 'CLOUD_COVER'
# Use ee.ImageCollection.aggregate_* functions to fetch information about
# values of a selected property across all images in the collection. For
# example, produce a list of all values, get counts, and calculate statistics.
display('List of property values:', col.aggregate_array(prop))
display('Count of property values:', col.aggregate_count(prop))
display('Count of distinct property values:',
        col.aggregate_count_distinct(prop))
display('First collection element property value:', col.aggregate_first(prop))
display('Histogram of property values:', col.aggregate_histogram(prop))
display('Min of property values:', col.aggregate_min(prop))
display('Max of property values:', col.aggregate_max(prop))
# The following methods are applicable to numerical properties only.
display('Mean of property values:', col.aggregate_mean(prop))
display('Sum of property values:', col.aggregate_sum(prop))
display('Product of property values:', col.aggregate_product(prop))
display('Std dev (sample) of property values:', col.aggregate_sample_sd(prop))
display('Variance (sample) of property values:', col.aggregate_sample_var(prop))
display('Std dev (total) of property values:', col.aggregate_total_sd(prop))
display('Variance (total) of property values:', col.aggregate_total_var(prop))
display('Summary stats of property values:', col.aggregate_stats(prop))
# Note that if the property is formatted as a string, min and max will
# respectively return the first and last values according to alphanumeric
# order of the property values.
prop_string = 'LANDSAT_SCENE_ID'
display('List of property values (string):', col.aggregate_array(prop_string))
display('Min of property values (string):', col.aggregate_min(prop_string))
display('Max of property values (string):', col.aggregate_max(prop_string))
  
  
  
  
  
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
  最后更新时间 (UTC):2025-10-30。
  
  
  
    
      [null,null,["最后更新时间 (UTC):2025-10-30。"],[],[]]