ee.Image.loadZarrV2Array
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
โหลดอาร์เรย์ Zarr v2 เป็นรูปภาพ แอตทริบิวต์อาร์เรย์ (.zattrs) ต้องมีฟิลด์ "_ARRAY_DIMENSIONS" ซึ่งเป็นรายการชื่อของมิติข้อมูลแต่ละรายการ (เช่น ['time', 'y', 'x']). ต้องมีมิติข้อมูลอย่างน้อย 2 รายการ โดย 2 รายการสุดท้ายแสดงถึง Y และ X ตามลําดับ (เช่น ['lat', 'lon']). ตัวแปลงรหัสการบีบอัดที่รองรับ ได้แก่ "blosc", "gzip", "lz4", "zlib" และ "zstd" ตัวแปลงรหัสการบีบอัดข้อมูลเมตาของ Blosc ที่รองรับ ได้แก่ "lz4", "lz4hc", "zlib" และ "zstd" (ไม่รองรับ "blosclz")
การใช้งาน | การคืนสินค้า |
---|
ee.Image.loadZarrV2Array(uri, proj, starts, ends) | รูปภาพ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
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 | การฉายภาพ | การฉายภาพของอาร์เรย์ |
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.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). |"]]