Duyuru:
15 Nisan 2025'ten önce Earth Engine'i kullanmak için kaydedilen tüm ticari olmayan projelerin Earth Engine erişimini sürdürmek için
ticari olmayan uygunluğu doğrulaması gerekir.
ee.ImageCollection.loadZarrV2Array
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
3 veya daha fazla boyuta sahip bir Zarr v2 dizisi yükler (ör. 1 veya daha fazla uzamsal olmayan boyut) olarak ImageCollection olarak dilimleyin. Dizi özellikleri (.zattrs), her boyutun adlarının listesi olan "_ARRAY_DIMENSIONS" alanını içermelidir (ör. ['time', 'y', 'x']). En az iki boyut olmalıdır.Son iki boyut sırasıyla Y ve X'i temsil eder (ör. ['lat', 'lon']). Desteklenen sıkıştırma codec'leri şunlardır: "blosc", "gzip", "lz4", "zlib" ve "zstd". Desteklenen blosc meta sıkıştırma codec'leri "lz4", "lz4hc", "zlib" ve "zstd"dir ("blosclz" desteklenmez).
Kullanım | İadeler |
---|
ee.ImageCollection.loadZarrV2Array(uri, proj, axis, starts, ends) | ImageCollection |
Bağımsız Değişken | Tür | Ayrıntılar |
---|
uri | Dize | Yüklenecek .zarray dosyasının Cloud Storage URI'si. Dizinin üst dizininde bir .zmetadata dosyası bulunmalıdır (ör. "gs://b/o/.zarray" için "gs://b/.zmetadata" bulunmalıdır). Paket meta verilerine erişilebilir olmalıdır (Bunun için "Storage Eski Paket Okuyucu" rolü de dahil olmak üzere "storage.buckets.get" izni gerekir. https://cloud.google.com/storage/docs/access-control/iam-roles adresine bakın.) Ayrıca paket, ABD çoklu bölgesinde, US-CENTRAL1 dahil olmak üzere ikili bir bölgede veya US-CENTRAL1 bölgesinde bulunmalıdır. |
proj | Projeksiyon | Dizinin projeksiyonu. |
axis | Integer, default: null | Bir ImageCollection oluşturmak için dizinin dilimleneceği uzamsal olmayan eksen (0 tabanlı). Koleksiyondaki her resim, bu eksen boyunca tek bir dilimi (uzunluk 1) temsil eder. Boşsa varsayılan olarak 0 değerine ayarlanır. Değer, [0, N-1] aralığında olmalıdır.Burada N, mekansal olmayan boyutların sayısıdır (ör. toplam boyut sayısı - 2). Dizi en az bir mekansal olmayan boyuta sahip olmalıdır (yani en az 3 boyutlu olmalıdır). |
starts | Liste, varsayılan: null | Her mekansal olmayan boyut boyunca dilim almaya başlanacak dizinler (dahil). Null ise dilimler, tüm uzamsal olmayan boyutlar için 0 dizini ile başlar. Belirtilen bu liste, mekansal olmayan boyutların sayısına (toplam boyut sayısı - 2) eşit uzunlukta olmalıdır. Listedeki bağımsız bir öğe boş olabilir. Bu durumda, söz konusu boyut için varsayılan değer 0 olur. Negatif dizinler, boyutun sonundan itibaren sayılır (ör. -1 son öğedir). |
ends | Liste, varsayılan: null | Her mekansal olmayan boyut boyunca dilim alma işleminin durdurulacağı dizinler (hariç). Boşsa dilimler, her bir ilgili mekansal olmayan boyutun sonuna kadar uzanır (yani varsayılan olarak boyutun uzunluğuna ayarlanır). Belirtilen bu liste, mekansal olmayan boyutların sayısına (toplam boyut sayısı - 2) eşit uzunlukta olmalıdır. Listede yer alan bağımsız bir öğe boş olabilir. Bu durumda, varsayılan olarak ilgili boyutun uzunluğu kullanılır. Negatif dizinler, boyutun sonundan itibaren sayılır (ör. -1 son öğedir). |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-25 UTC."],[],[],null,["# ee.ImageCollection.loadZarrV2Array\n\nLoads a Zarr v2 array with 3 or more dimensions (i.e., 1 or more non-spatial dimensions) as an ImageCollection by slicing along a specified non-spatial axis. 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.ImageCollection.loadZarrV2Array(uri, proj, `*axis* `, `*starts* `, `*ends*`)` | ImageCollection |\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| `axis` | Integer, default: null | The non-spatial axis (0-indexed) along which to slice the array to create an ImageCollection. Each image in the collection represents a single slice (length 1) along this axis. If null, defaults to 0. The value must be in the range \\[0, N-1\\], where N is the number of non-spatial dimensions (i.e., total dimensions - 2). The array must have at least one non-spatial dimension (i.e., be at least 3 dimensional). |\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). |"]]