ee.ImageCollection.loadZarrV2Array
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
โหลดอาร์เรย์ Zarr v2 ที่มีมิติข้อมูลตั้งแต่ 3 รายการขึ้นไป (เช่น มิติข้อมูลที่ไม่เชิงพื้นที่อย่างน้อย 1 รายการ) เป็น ImageCollection โดยการแบ่งตามแกนที่ไม่เชิงพื้นที่ที่ระบุ แอตทริบิวต์อาร์เรย์ (.zattrs) ต้องมีฟิลด์ "_ARRAY_DIMENSIONS" ซึ่งเป็นรายการชื่อของมิติข้อมูลแต่ละรายการ (เช่น ['time', 'y', 'x']). ต้องมีมิติข้อมูลอย่างน้อย 2 รายการ โดย 2 รายการสุดท้ายแสดงถึง 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 | สตริง | URI ของ Cloud Storage ของไฟล์ .zarray ที่จะโหลด ต้องมีไฟล์ .zmetadata ในไดเรกทอรีหลักของไดเรกทอรีอาร์เรย์ (เช่น สำหรับ "gs://b/o/.zarray" ต้องมี "gs://b/.zmetadata") ข้อมูลเมตาของที่เก็บข้อมูลต้องเข้าถึงได้ (ต้องมีสิทธิ์ `storage.buckets.get` ซึ่งได้จากบทบาท "ผู้อ่านที่เก็บข้อมูลเดิมของ Storage" และบทบาทอื่นๆ ดูที่ https://cloud.google.com/storage/docs/access-control/iam-roles) และที่เก็บข้อมูลต้องอยู่ในภูมิภาคหลายแห่งของสหรัฐอเมริกา ภูมิภาคคู่ ได้แก่ US-CENTRAL1 หรือภูมิภาค US-CENTRAL1 |
proj | การฉายภาพ | การฉายภาพของอาร์เรย์ |
axis | Integer, default: null | แกนที่ไม่เชิงพื้นที่ (อินเด็กซ์ 0) ที่จะใช้ในการตัดอาร์เรย์เพื่อสร้าง ImageCollection แต่ละรูปภาพในคอลเล็กชันแสดงภาพตัดขวางเดียว (ความยาว 1) ตามแนวแกนนี้ หากเป็นค่า Null ระบบจะตั้งค่าเริ่มต้นเป็น 0 ค่าต้องอยู่ในช่วง [0, N-1] โดยที่ N คือจํานวนมิติข้อมูลที่ไม่ใช่เชิงพื้นที่ (นั่นคือ มิติข้อมูลทั้งหมด - 2) อาร์เรย์ต้องมีมิติข้อมูลที่ไม่เชิงพื้นที่อย่างน้อย 1 มิติ (กล่าวคือ ต้องมีมิติข้อมูลอย่างน้อย 3 มิติ) |
starts | รายการ ค่าเริ่มต้น: null | ดัชนี (รวม) ที่จะเริ่มตัดตามมิติข้อมูลที่ไม่เชิงพื้นที่แต่ละรายการ หากเป็นค่าว่าง ส่วนของข้อมูลจะเริ่มต้นที่ดัชนี 0 สําหรับมิติข้อมูลที่ไม่ใช่เชิงพื้นที่ทั้งหมด หากระบุ รายการนี้ต้องมีความยาวเท่ากับจํานวนมิติข้อมูลที่ไม่ใช่เชิงพื้นที่ (มิติข้อมูลทั้งหมด - 2) องค์ประกอบแต่ละรายการในลิสต์อาจเป็นค่าว่าง ซึ่งค่าเริ่มต้นจะเป็น 0 สําหรับมิติข้อมูลนั้น ระบบจะนับดัชนีเชิงลบจากท้ายมิติข้อมูล (เช่น -1 คือองค์ประกอบสุดท้าย) |
ends | รายการ ค่าเริ่มต้น: null | ดัชนี (ไม่รวม) ที่หยุดตัดตามมิติข้อมูลที่ไม่เชิงพื้นที่แต่ละรายการ หากเป็นค่า Null ส่วนของภาพจะขยายไปจนถึงจุดสิ้นสุดของมิติข้อมูลที่ไม่ใช่เชิงพื้นที่ที่เกี่ยวข้องแต่ละรายการ (นั่นคือค่าเริ่มต้นคือความยาวของมิติข้อมูล) หากระบุ รายการนี้ต้องมีความยาวเท่ากับจํานวนมิติข้อมูลที่ไม่ใช่เชิงพื้นที่ (มิติข้อมูลทั้งหมด - 2) องค์ประกอบแต่ละรายการในลิสต์อาจเป็นค่าว่าง ซึ่งจะถือเป็นค่าเริ่มต้นของความยาวของมิติข้อมูลนั้นด้วย ระบบจะนับดัชนีเชิงลบจากท้ายมิติข้อมูล (เช่น -1 คือองค์ประกอบสุดท้าย) |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 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). |"]]