Feedback geben
ee.ImageCollection.aggregate_min
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Die Werte einer bestimmten Property der Objekte in einer Sammlung werden zusammengefasst und der Minimalwert der ausgewählten Property berechnet.
Nutzung Ausgabe ImageCollection. aggregate_min (property)
Argument Typ Details das: collection
FeatureCollection Die Sammlung, die zusammengefasst werden soll. property
String Die Property, die für jedes Element der Sammlung verwendet werden soll.
Beispiele
Code-Editor (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 einrichten
Auf der Seite
Python-Umgebung finden Sie Informationen zur Python API und zur Verwendung von geemap
für die interaktive Entwicklung.
import ee
import geemap.core as geemap
Colab (Python)
from pprint import pprint
# 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.
print ( 'List of property values:' , col . aggregate_array ( prop ) . getInfo ())
print ( 'Count of property values:' , col . aggregate_count ( prop ) . getInfo ())
print ( 'Count of distinct property values:' ,
col . aggregate_count_distinct ( prop ) . getInfo ())
print ( 'First collection element property value:' ,
col . aggregate_first ( prop ) . getInfo ())
print ( 'Histogram of property values:' )
pprint ( col . aggregate_histogram ( prop ) . getInfo ())
print ( 'Min of property values:' , col . aggregate_min ( prop ) . getInfo ())
print ( 'Max of property values:' , col . aggregate_max ( prop ) . getInfo ())
# The following methods are applicable to numerical properties only.
print ( 'Mean of property values:' , col . aggregate_mean ( prop ) . getInfo ())
print ( 'Sum of property values:' , col . aggregate_sum ( prop ) . getInfo ())
print ( 'Product of property values:' , col . aggregate_product ( prop ) . getInfo ())
print ( 'Std dev (sample) of property values:' ,
col . aggregate_sample_sd ( prop ) . getInfo ())
print ( 'Variance (sample) of property values:' ,
col . aggregate_sample_var ( prop ) . getInfo ())
print ( 'Std dev (total) of property values:' ,
col . aggregate_total_sd ( prop ) . getInfo ())
print ( 'Variance (total) of property values:' ,
col . aggregate_total_var ( prop ) . getInfo ())
print ( 'Summary stats of property values:' )
pprint ( col . aggregate_stats ( prop ) . getInfo ())
# 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'
print ( 'List of property values (string):' ,
col . aggregate_array ( prop_string ) . getInfo ())
print ( 'Min of property values (string):' ,
col . aggregate_min ( prop_string ) . getInfo ())
print ( 'Max of property values (string):' ,
col . aggregate_max ( prop_string ) . getInfo ())
Feedback geben
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers . Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-04-21 (UTC).
Haben Sie Feedback für uns?
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-04-21 (UTC)."],[[["`aggregate_min` calculates the minimum value of a specified property across an ImageCollection."],["It is applicable to both numerical and string properties within the collection."],["For numerical properties, it returns the lowest value."],["For string properties, it returns the first value based on alphanumeric order."],["This function is helpful for identifying the minimum value of a property, such as cloud cover or a scene ID, across a collection of images."]]],["The content describes how to use `aggregate_min` to find the minimum value of a specified property within a collection. It demonstrates fetching information about a property across all elements, including counts, statistics, and histograms. Additional aggregation functions for calculating the mean, sum, product, and variance of numerical properties are included. For string properties, `aggregate_min` returns the first value based on alphanumeric order. Example codes are provided in JavaScript and Python.\n"]]