Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum
15 April 2025 harus
memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
ee.Image.loadZarrV2Array
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Memuat array Zarr v2 sebagai Gambar. Atribut array (.zattrs) harus berisi kolom '_ARRAY_DIMENSIONS', yang merupakan daftar nama setiap dimensi (misalnya, ['time', 'y', 'x']). Setidaknya harus ada dua dimensi, dengan dua dimensi terakhir masing-masing mewakili Y dan X (misalnya, ['lat', 'lon']). Codec kompresi yang didukung adalah 'blosc', 'gzip', 'lz4', 'zlib', dan 'zstd'. Codec kompresi meta blosc yang didukung adalah 'lz4', lz4hc', 'zlib', dan 'zstd' ('blosclz' tidak didukung).
Penggunaan | Hasil |
---|
ee.Image.loadZarrV2Array(uri, proj, starts, ends) | Gambar |
Argumen | Jenis | Detail |
---|
uri | String | URI Cloud Storage file .zarray yang akan dimuat. File .zmetadata harus ada di direktori induk direktori array (misalnya, untuk 'gs://b/o/.zarray', 'gs://b/.zmetadata' harus ada). Metadata bucket harus dapat diakses (memerlukan izin `storage.buckets.get` yang diberikan oleh peran "Storage Legacy Bucket Reader", antara lain, lihat https://cloud.google.com/storage/docs/access-control/iam-roles) dan bucket harus berada di multi-region AS, dual-region termasuk US-CENTRAL1, atau region US-CENTRAL1. |
proj | Proyeksi | Proyeksi array. |
starts | Daftar, default: null | Indeks (inklusif) tempat untuk mulai mengambil slice di sepanjang setiap dimensi non-spasial. Jika null, slice akan dimulai pada indeks 0 untuk semua dimensi non-spasial. Jika ditentukan, daftar ini harus memiliki panjang yang sama dengan jumlah dimensi non-spasial (total dimensi - 2). Setiap elemen dalam daftar dapat berupa null, yang secara default ditetapkan ke 0 untuk dimensi tersebut. Indeks negatif dihitung dari akhir dimensi (misalnya, -1 adalah elemen terakhir). |
ends | Daftar, default: null | Indeks (eksklusif) tempat berhenti mengambil irisan di sepanjang setiap dimensi non-spasial. Jika null, slice akan diperluas ke akhir setiap dimensi non-spasial yang sesuai (yaitu, defaultnya adalah panjang dimensi). Jika ditentukan, daftar ini harus memiliki panjang yang sama dengan jumlah dimensi non-spasial (total dimensi - 2). Setiap elemen dalam daftar dapat berupa null, yang juga ditetapkan secara default ke panjang dimensi tersebut. Indeks negatif dihitung dari akhir dimensi (misalnya, -1 adalah elemen terakhir). |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-25 UTC.
[null,null,["Terakhir diperbarui pada 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). |"]]