ee.ImageCollection.loadZarrV2Array
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
तीन या उससे ज़्यादा डाइमेंशन (यानी, एक या उससे ज़्यादा नॉन-स्पेशल डाइमेंशन) को ImageCollection के तौर पर दिखाया जा सकता है. इसके लिए, किसी नॉन-स्पेशल ऐक्सिस के साथ स्लाइसिंग की जाती है. ऐरे एट्रिब्यूट (.zattrs) में '_ARRAY_DIMENSIONS' फ़ील्ड होना चाहिए. यह हर डाइमेंशन के नामों की सूची होती है (उदाहरण के लिए, ['time', 'y', 'x']). इसमें कम से कम दो डाइमेंशन होने चाहिए. आखिरी दो डाइमेंशन, Y और X को दिखाते हैं (उदाहरण के लिए, ['lat', 'lon']). डेटा को कंप्रेस करने के लिए, 'blosc', 'gzip', 'lz4', 'zlib', और 'zstd' कोड इस्तेमाल किए जा सकते हैं. blosc मेटा-कंप्रेसन कोडेक के तौर पर, 'lz4', lz4hc', 'zlib', और 'zstd' का इस्तेमाल किया जा सकता है. हालांकि, 'blosclz' का इस्तेमाल नहीं किया जा सकता.
इस्तेमाल | रिटर्न |
---|
ee.ImageCollection.loadZarrV2Array(uri, proj, axis, starts, ends) | ImageCollection |
आर्ग्यूमेंट | टाइप | विवरण |
---|
uri | स्ट्रिंग | .zarray फ़ाइल का Cloud Storage यूआरआई, जिसे लोड करना है. ऐरे की डायरेक्ट्री की पैरंट डायरेक्ट्री में .zmetadata फ़ाइल मौजूद होनी चाहिए. उदाहरण के लिए, 'gs://b/o/.zarray' के लिए, 'gs://b/.zmetadata' मौजूद होनी चाहिए. बकेट का मेटाडेटा ऐक्सेस किया जा सकता हो. इसके लिए, आपके पास `storage.buckets.get` अनुमति होनी चाहिए. यह अनुमति, "स्टोरेज लेगसी बकेट रीडर" की भूमिका के साथ-साथ अन्य भूमिकाओं से भी मिलती है. ज़्यादा जानकारी के लिए, https://cloud.google.com/storage/docs/access-control/iam-roles पर जाएं. साथ ही, बकेट अमेरिका के एक से ज़्यादा इलाकों में, दो इलाकों में या US-CENTRAL1 इलाके में होना चाहिए. |
proj | अनुमान | ऐरे का प्रोजेक्शन. |
axis | Integer, default: null | ऐसा ऐक्सिस (0 से इंडेक्स किया गया) जो स्पेस के बजाय किसी अन्य चीज़ के आधार पर डेटा को व्यवस्थित करता है. इसकी मदद से, ImageCollection बनाने के लिए ऐरे को स्लाइस किया जाता है. कलेक्शन में मौजूद हर इमेज, इस अक्ष के साथ एक स्लाइस (लंबाई 1) दिखाती है. अगर यह वैल्यू शून्य है, तो यह डिफ़ॉल्ट रूप से 0 पर सेट हो जाती है. वैल्यू, [0, N-1] की रेंज में होनी चाहिए.यहां N, ऐसे डाइमेंशन की संख्या है जो स्पेस के हिसाब से नहीं हैं. जैसे, कुल डाइमेंशन - 2. ऐरे में कम से कम एक ऐसा डाइमेंशन होना चाहिए जो स्पेस से जुड़ा न हो. इसका मतलब है कि ऐरे कम से कम तीन डाइमेंशन का होना चाहिए. |
starts | सूची, डिफ़ॉल्ट: null | वे इंडेक्स जिनसे हर नॉन-स्पेशल डाइमेंशन के लिए स्लाइस लेना शुरू करना है. अगर यह वैल्यू शून्य है, तो सभी नॉन-स्पेशल डाइमेंशन के लिए स्लाइस, इंडेक्स 0 से शुरू होंगे. अगर इस सूची की जानकारी दी गई है, तो इसकी लंबाई, ऐसे डाइमेंशन की संख्या के बराबर होनी चाहिए जो स्पेस के हिसाब से नहीं हैं (कुल डाइमेंशन - 2). सूची में मौजूद कोई एलिमेंट शून्य हो सकता है. यह उस डाइमेंशन के लिए डिफ़ॉल्ट रूप से 0 पर सेट होता है. नेगेटिव इंडेक्स की गिनती, डाइमेंशन के आखिर से की जाती है (उदाहरण के लिए, -1 आखिरी एलिमेंट है). |
ends | सूची, डिफ़ॉल्ट: null | वे इंडेक्स (एक्सक्लूज़िव) जिन पर हर नॉन-स्पेशल डाइमेंशन के लिए स्लाइस लेना बंद करना है. अगर यह वैल्यू शून्य है, तो स्लाइस, उससे जुड़े हर ऐसे डाइमेंशन के आखिर तक फैल जाएंगे जो स्पेस के हिसाब से नहीं है. इसका मतलब है कि यह वैल्यू, डाइमेंशन की लंबाई के हिसाब से डिफ़ॉल्ट रूप से सेट होती है. अगर इस सूची की जानकारी दी गई है, तो इसकी लंबाई, ऐसे डाइमेंशन की संख्या के बराबर होनी चाहिए जो स्पेस के हिसाब से नहीं हैं (कुल डाइमेंशन - 2). सूची में मौजूद कोई एलिमेंट शून्य हो सकता है. यह एलिमेंट, डिफ़ॉल्ट रूप से उस डाइमेंशन की लंबाई पर सेट होता है. नेगेटिव इंडेक्स की गिनती, डाइमेंशन के आखिर से की जाती है (उदाहरण के लिए, -1 आखिरी एलिमेंट है). |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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). |"]]