ee.Image.loadZarrV2Array
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Zarr v2 कलेक्शन को इमेज के तौर पर लोड करता है. ऐरे एट्रिब्यूट (.zattrs) में '_ARRAY_DIMENSIONS' फ़ील्ड होना चाहिए. यह हर डाइमेंशन के नामों की सूची होती है (उदाहरण के लिए, ['time', 'y', 'x']). इसमें कम से कम दो डाइमेंशन होने चाहिए. आखिरी दो डाइमेंशन, Y और X को दिखाते हैं (उदाहरण के लिए, ['lat', 'lon']). डेटा को कंप्रेस करने के लिए, 'blosc', 'gzip', 'lz4', 'zlib', और 'zstd' कोड इस्तेमाल किए जा सकते हैं. blosc मेटा-कंप्रेसन कोडेक के तौर पर, 'lz4', lz4hc', 'zlib', और 'zstd' का इस्तेमाल किया जा सकता है. हालांकि, 'blosclz' का इस्तेमाल नहीं किया जा सकता.
इस्तेमाल | रिटर्न |
---|
ee.Image.loadZarrV2Array(uri, proj, starts, ends) | इमेज |
आर्ग्यूमेंट | टाइप | विवरण |
---|
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 | अनुमान | ऐरे का प्रोजेक्शन. |
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.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). |"]]