Earth Engine ขอแนะนำ
ระดับโควต้าที่ไม่ใช่เชิงพาณิชย์เพื่อปกป้องทรัพยากรการประมวลผลที่ใช้ร่วมกันและรับประกันประสิทธิภาพที่เชื่อถือได้สำหรับทุกคน โปรเจ็กต์ที่ไม่ใช่เชิงพาณิชย์ทั้งหมดจะต้องเลือกระดับโควต้าภายในวันที่
27 เมษายน 2026 หรือจะใช้ระดับชุมชนโดยค่าเริ่มต้นก็ได้ โควต้าระดับจะมีผลกับโปรเจ็กต์ทั้งหมด (ไม่ว่าวันที่เลือกระดับจะเป็นวันใด) ในวันที่
27 เมษายน 2026 ดูข้อมูลเพิ่มเติม
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
ee.PixelType
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงผล PixelType ของความแม่นยำที่ระบุโดยมีขีดจำกัดที่ระบุต่อองค์ประกอบ และมิติข้อมูลที่ไม่บังคับ
| การใช้งาน | การคืนสินค้า |
|---|
ee.PixelType(precision, minValue, maxValue, dimensions) | PixelType |
| อาร์กิวเมนต์ | ประเภท | รายละเอียด |
|---|
precision | วัตถุ | ความแม่นยำของพิกเซล ซึ่งเป็นอย่างใดอย่างหนึ่งระหว่าง "int", "float" หรือ "double" |
minValue | ตัวเลข ค่าเริ่มต้น: null | ค่าต่ำสุดของพิกเซลประเภทนี้ หากความแม่นยำเป็น "float" หรือ "double" ค่านี้จะเป็น null ซึ่งหมายถึงลบอินฟินิตี้ |
maxValue | ตัวเลข ค่าเริ่มต้น: null | ค่าสูงสุดของพิกเซลประเภทนี้ หากความแม่นยำเป็น "float" หรือ "double" ค่านี้จะเป็น null ซึ่งหมายถึงค่าอนันต์บวก |
dimensions | จำนวนเต็ม ค่าเริ่มต้น: 0 | จำนวนมิติที่พิกเซลประเภทนี้สามารถเปลี่ยนแปลงได้ โดย 0 คือสเกลาร์, 1 คือเวกเตอร์, 2 คือเมทริกซ์ เป็นต้น |
ตัวอย่าง
โปรแกรมแก้ไขโค้ด (JavaScript)
print(ee.PixelType('int', 0, 1)); // int ∈ [0, 1]
print(ee.PixelType('int', -20, -10)); // int ∈ [-20, -10]
print(ee.PixelType('float')); // float
print(ee.PixelType('double')); // double
print(ee.PixelType('double', null)); // double
print(ee.PixelType('double', null, null)); // double
print(ee.PixelType('double', null, null, 0)); // double
print(ee.PixelType('double', null, null, 1)); // double, 1 dimensions
print(ee.PixelType('double', null, null, 2)); // double, 2 dimensions
print(ee.PixelType('double', null, null, 3)); // double, 3 dimensions
print(ee.PixelType('double', null, null, 10)); // double, 10 dimensions
print(ee.PixelType('double', null, null, 1e8)); // double, 100000000 dimensions
print(ee.PixelType('double', 1, 2, 0)); // double ∈ [1, 2]
print(ee.PixelType('double', 1, 3, 2)); // double ∈ [1, 3], 2 dimensions
print(ee.PixelType('double', -4, -3, 0)); // double ∈ [-4, -3]
print(ee.PixelType('double', null, 2.3, 0)); // double
print(ee.PixelType('double', 3.4, null, 0)); // double
การตั้งค่า Python
ดูข้อมูลเกี่ยวกับ Python API และการใช้ geemap เพื่อการพัฒนาแบบอินเทอร์แอกทีฟได้ที่หน้า
สภาพแวดล้อม Python
import ee
import geemap.core as geemap
Colab (Python)
display(ee.PixelType('int', 0, 1)) # int ∈ [0, 1]
display(ee.PixelType('int', -20, -10)) # int ∈ [-20, -10]
display(ee.PixelType('float')) # float
display(ee.PixelType('double')) # double
display(ee.PixelType('double', None)) # double
display(ee.PixelType('double', None, None)) # double
display(ee.PixelType('double', None, None, 0)) # double
display(ee.PixelType('double', None, None, 1)) # double, 1 dimensions
display(ee.PixelType('double', None, None, 2)) # double, 2 dimensions
display(ee.PixelType('double', None, None, 3)) # double, 3 dimensions
display(ee.PixelType('double', None, None, 10)) # double, 10 dimensions
# double, 100000000 dimensions
display(ee.PixelType('double', None, None, 1e8))
display(ee.PixelType('double', 1, 2, 0)) # double ∈ [1, 2]
# double ∈ [1, 3], 2 dimensions
display(ee.PixelType('double', 1, 3, 2))
display(ee.PixelType('double', -4, -3, 0)) # double ∈ [-4, -3]
display(ee.PixelType('double', None, 2.3, 0)) # double
display(ee.PixelType('double', 3.4, None, 0)) # double
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-10-30 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-10-30 UTC"],[],[]]