ee.Image.loadZarrV2Array
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Lädt ein Zarr v2-Array als Bild. Die Arrayattribute (.zattrs) müssen das Feld „_ARRAY_DIMENSIONS“ enthalten, eine Liste der Namen der einzelnen Dimensionen (z.B. ['time', 'y', 'x']). Es müssen mindestens zwei Dimensionen vorhanden sein, wobei die letzten beiden für Y und X stehen (z.B. ['lat', 'lon']). Die unterstützten Komprimierungs-Codecs sind „blosc“, „gzip“, „lz4“, „zlib“ und „zstd“. Die unterstützten blosc-Metakomprimierungs-Codecs sind „lz4“, „lz4hc“, „zlib“ und „zstd“ („blosclz“ wird nicht unterstützt).
Nutzung | Ausgabe |
---|
ee.Image.loadZarrV2Array(uri, proj, starts, ends) | Bild |
Argument | Typ | Details |
---|
uri | String | Der Cloud Storage-URI der zu ladenden .zarray-Datei. Im übergeordneten Verzeichnis des Arrays muss eine .zmetadata-Datei vorhanden sein. Beispiel: Für „gs://b/o/.zarray“ muss „gs://b/.zmetadata“ vorhanden sein. Auf die Bucket-Metadaten muss zugegriffen werden können (erforderlich ist die Berechtigung „storage.buckets.get“, die unter anderem von der Rolle „Storage Legacy Bucket Reader“ bereitgestellt wird, siehe https://cloud.google.com/storage/docs/access-control/iam-roles). Außerdem muss sich der Bucket in der Multi-Region USA, in einer Dual-Region mit US-CENTRAL1 oder in der Region US-CENTRAL1 befinden. |
proj | Projektion | Die Projektion des Arrays. |
starts | Liste, Standard: „null“ | Die Indizes (inklusive), ab denen die Ausschnitte entlang jeder nicht-räumlichen Dimension erstellt werden sollen. Wenn „null“ festgelegt ist, beginnen die Segmente für alle nicht-räumlichen Dimensionen bei Index 0. Falls angegeben, muss diese Liste die gleiche Länge wie die Anzahl der nicht-räumlichen Dimensionen haben (Gesamtzahl der Dimensionen – 2). Ein einzelnes Element in der Liste kann null sein. In diesem Fall wird für die Dimension standardmäßig „0“ verwendet. Negative Indizes werden vom Ende der Dimension gezählt (z.B. -1 ist das letzte Element). |
ends | Liste, Standard: „null“ | Die Indizes (exklusiv), bei denen die Aufteilungen entlang der einzelnen nicht-räumlichen Dimensionen beendet werden sollen. Wenn „null“ festgelegt ist, erstrecken sich die Segmente bis zum Ende der entsprechenden nicht-geografischen Dimension (d.h. standardmäßig bis zur Länge der Dimension). Falls angegeben, muss diese Liste die gleiche Länge wie die Anzahl der nicht-räumlichen Dimensionen haben (Gesamtzahl der Dimensionen – 2). Ein einzelnes Element in der Liste kann null sein. In diesem Fall wird standardmäßig die Länge dieser Dimension verwendet. Negative Indizes werden vom Ende der Dimension gezählt (z.B. -1 ist das letzte Element). |
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-07-25 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-25 (UTC)."],[],[],null,["# ee.Image.loadZarrV2Array\n\nLoads a Zarr v2 array as an Image. The array attributes (.zattrs) must contain the field '_ARRAY_DIMENSIONS', which is a list of the names of each dimension (e.g., \\['time', 'y', 'x'\\]). There must be at least two dimensions, with the final two representing Y and X respectively (e.g., \\['lat', 'lon'\\]). The supported compression codecs are 'blosc', 'gzip', 'lz4', 'zlib', and 'zstd'. The supported blosc meta-compression codecs are 'lz4', lz4hc', 'zlib', and 'zstd' ('blosclz' is not supported).\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------------------------|---------|\n| `ee.Image.loadZarrV2Array(uri, proj, `*starts* `, `*ends*`)` | Image |\n\n| Argument | Type | Details |\n|----------|---------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `uri` | String | The Cloud Storage URI of the .zarray file to load. A .zmetadata file must be present in the parent directory of the array's directory (e.g., for 'gs://b/o/.zarray', 'gs://b/.zmetadata' must be present). The bucket metadata must be accessible (requires the \\`storage.buckets.get\\` permission which is provided by the role \"Storage Legacy Bucket Reader\" among others, see https://cloud.google.com/storage/docs/access-control/iam-roles) and the bucket must be located in the US multi-region, a dual-region including US-CENTRAL1, or the US-CENTRAL1 region. |\n| `proj` | Projection | The projection of the array. |\n| `starts` | List, default: null | The indices (inclusive) at which to start taking slices along each non-spatial dimension. If null, slices will start at index 0 for all non-spatial dimensions. If specified, this list must have a length equal to the number of non-spatial dimensions (total dimensions - 2). An individual element within the list may be null, which defaults to 0 for that dimension. Negative indices are counted from the end of the dimension (e.g., -1 is the last element). |\n| `ends` | List, default: null | The indices (exclusive) at which to stop taking slices along each non-spatial dimension. If null, slices will extend to the end of each corresponding non-spatial dimension (i.e., defaults to the length of the dimension). If specified, this list must have a length equal to the number of non-spatial dimensions (total dimensions - 2). An individual element within the list may be null, which also defaults to the length of that dimension. Negative indices are counted from the end of the dimension (e.g., -1 is the last element). |"]]