Die Earth Engine führt
nicht kommerzielle Kontingentstufen ein, um gemeinsam genutzte Rechenressourcen zu schützen und eine zuverlässige Leistung für alle sicherzustellen. Für alle nicht kommerziellen Projekte muss bis zum
27. April 2026 eine Kontingentstufe ausgewählt werden. Geschieht dies nicht, wird standardmäßig die Stufe „Community“ verwendet. Die Stufenkontingente treten für alle Projekte (unabhängig vom Datum der Stufenauswahl) am
27. April 2026 in Kraft.
Weitere Informationen
ee.ImageCollection.set
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Überschreibt eine oder mehrere Metadateneigenschaften eines Elements.
Gibt das Element zurück, dessen angegebene Eigenschaften überschrieben wurden.
| Nutzung | Ausgabe |
|---|
ImageCollection.set(var_args) | Element |
| Argument | Typ | Details |
|---|
So gehts: element | Element | Die Elementinstanz. |
var_args | VarArgs[Object] | Entweder ein Dictionary mit Attributen oder eine Vararg-Sequenz von Attributen, z.B. key1, value1, key2, value2, ... |
Beispiele
Code-Editor (JavaScript)
// A contrived, empty image collection for simple demonstration.
var col = ee.ImageCollection([]);
print('Collection without properties', col);
// Set collection properties using a dictionary.
col = col.set({
project_name: 'biomass_tracking',
project_id: 3,
plot_ids: ee.Array([7, 11, 20])
});
// Set collection properties using a series of key-value pairs.
col = col.set('project_year', 2018,
'rgb_vis', 'false_color');
print('Collection with properties', col);
// Get a dictionary of collection property keys and values.
print('Property keys and values (ee.Dictionary)', col.toDictionary());
// Get the value of a collection property. To use the result of
// ee.ImageCollection.get in further computation, you need to cast it to the
// appropriate class, for example, ee.Number(result) or ee.String(result).
print('Project ID (ambiguous object)', col.get('project_id'));
// Get the value of a string collection property as an ee.String object.
print('Project name (ee.String)', col.getString('project_name'));
// Get the value of a numeric collection property as an ee.Number object.
print('Project year (ee.Number)', col.getNumber('project_year'));
// Get the value of an ee.Array collection property as an ee.Array object.
print('Plot IDs (ee.Array)', col.getArray('plot_ids'));
Python einrichten
Weitere Informationen zur Python API und zur Verwendung von geemap für die interaktive Entwicklung finden Sie auf der Seite
Python-Umgebung.
import ee
import geemap.core as geemap
Colab (Python)
# A contrived, empty image collection for simple demonstration.
col = ee.ImageCollection([])
display('Collection without properties:', col)
# Set collection properties using a dictionary.
col = col.set({
'project_name': 'biomass_tracking',
'project_id': 3,
'plot_ids': ee.Array([7, 11, 20])
})
# Set collection properties using a series of key-value pairs.
col = col.set('project_year', 2018,
'rgb_vis', 'false_color')
display('Collection with properties:', col)
# Get a dictionary of collection property keys and values.
display('Property keys and values (ee.Dictionary):', col.toDictionary())
# Get the value of a collection property. To use the result of
# ee.ImageCollection.get in further computation, you need to cast it to the
# appropriate class, for example, ee.Number(result) or ee.String(result).
display('Project ID (ambiguous object):', col.get('project_id'))
# Get the value of a string collection property as an ee.String object.
display('Project name (ee.String):', col.getString('project_name'))
# Get the value of a numeric collection property as an ee.Number object.
display('Project year (ee.Number):', col.getNumber('project_year'))
# Get the value of an ee.Array collection property as an ee.Array object.
display('Plot IDs (ee.Array):', col.getArray('plot_ids'))
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: 2026-01-08 (UTC).
[null,null,["Zuletzt aktualisiert: 2026-01-08 (UTC)."],[],[]]