Earth Engine ขอแนะนำ
ระดับโควต้าที่ไม่ใช่เชิงพาณิชย์เพื่อปกป้องทรัพยากรการประมวลผลที่ใช้ร่วมกันและรับประกันประสิทธิภาพที่เชื่อถือได้สำหรับทุกคน โปรเจ็กต์ที่ไม่ใช่เชิงพาณิชย์ทั้งหมดจะต้องเลือกระดับโควต้าภายในวันที่
27 เมษายน 2026 หรือจะใช้ระดับชุมชนโดยค่าเริ่มต้นก็ได้ โควต้าระดับจะมีผลกับโปรเจ็กต์ทั้งหมด (ไม่ว่าวันที่เลือกระดับจะเป็นวันใด) ในวันที่
27 เมษายน 2026 ดูข้อมูลเพิ่มเติม
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Export.image.toAsset
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างงานแบบกลุ่มเพื่อส่งออกรูปภาพเป็นแรสเตอร์ไปยังชิ้นงาน Earth Engine คุณเริ่มงานได้จากแท็บ Tasks
| การใช้งาน | การคืนสินค้า |
|---|
Export.image.toAsset(image, description, assetId, pyramidingPolicy, dimensions, region, scale, crs, crsTransform, maxPixels, shardSize, priority, overwrite) | |
| อาร์กิวเมนต์ | ประเภท | รายละเอียด |
|---|
image | รูปภาพ | รูปภาพที่จะส่งออก |
description | สตริง ไม่บังคับ | ชื่อของงานที่มนุษย์อ่านได้ ค่าเริ่มต้นคือ "myExportImageTask" |
assetId | สตริง ไม่บังคับ | รหัสชิ้นงานปลายทาง |
pyramidingPolicy | ออบเจ็กต์ (ไม่บังคับ) | นโยบายการปิรามิดที่จะใช้กับแต่ละแถบในรูปภาพ โดยมีชื่อแถบเป็นคีย์ ค่าต้องเป็นค่าใดค่าหนึ่งต่อไปนี้ ค่าเฉลี่ย ตัวอย่าง ค่าต่ำสุด ค่าสูงสุด หรือค่าฐานนิยม ค่าเริ่มต้นคือ "mean" คุณอาจใช้คีย์พิเศษ ".default" เพื่อเปลี่ยนค่าเริ่มต้นสำหรับทุกแบนด์ได้
|
dimensions | Number|String, ไม่บังคับ | ขนาดที่จะใช้สำหรับรูปภาพที่ส่งออก รับจำนวนเต็มบวกรายการเดียวเป็นมิติข้อมูลสูงสุด หรือ
"WIDTHxHEIGHT" โดยที่ WIDTH และ HEIGHT เป็นจำนวนเต็มบวก |
region | Geometry.LinearRing|Geometry.Polygon|String, ไม่บังคับ | LinearRing, Polygon หรือพิกัดที่แสดงภูมิภาคที่จะส่งออก โดยอาจระบุเป็นออบเจ็กต์ Geometry หรือพิกัดที่แปลงเป็นอนุกรมเป็นสตริง |
scale | หมายเลข (ไม่บังคับ) | ความละเอียดเป็นเมตรต่อพิกเซล ค่าเริ่มต้นคือ 1,000 |
crs | สตริง ไม่บังคับ | CRS ที่จะใช้สำหรับรูปภาพที่ส่งออก |
crsTransform | List[Number]|String, ไม่บังคับ | การแปลงแบบแอฟฟินที่จะใช้กับรูปภาพที่ส่งออก ต้องระบุ "crs" |
maxPixels | หมายเลข (ไม่บังคับ) | จำกัดจำนวนพิกเซลในการส่งออก โดยค่าเริ่มต้น คุณจะเห็นข้อผิดพลาดหากการส่งออกมีขนาดเกิน 1e8 พิกเซล การตั้งค่านี้อย่างชัดเจนจะช่วยให้คุณเพิ่มหรือลดขีดจำกัดนี้ได้ |
shardSize | หมายเลข (ไม่บังคับ) | ขนาดเป็นพิกเซลของไทล์ที่จะใช้คำนวณรูปภาพนี้ ค่าเริ่มต้นคือ 256 |
priority | หมายเลข (ไม่บังคับ) | ลำดับความสำคัญของงานภายในโปรเจ็กต์ ระบบจะกำหนดเวลางานที่มีลำดับความสำคัญสูงกว่าให้เร็วขึ้น ต้องเป็นจำนวนเต็มระหว่าง 0 ถึง 9999 ค่าเริ่มต้นคือ 100 |
overwrite | บูลีน ไม่บังคับ | จะเขียนทับเนื้อหาหรือไม่หากมีอยู่แล้ว ค่าเริ่มต้นคือ false |
ตัวอย่าง
ตัวแก้ไขโค้ด (JavaScript)
// A Landsat 8 surface reflectance image.
var image = ee.Image('LANDSAT/LC08/C02/T1_L2/LC08_044034_20210508')
.select(['SR_B.']); // reflectance bands
// A region of interest.
var region = ee.Geometry.BBox(-122.24, 37.13, -122.11, 37.20);
// Set the export "scale" and "crs" parameters.
Export.image.toAsset({
image: image,
description: 'image_export',
assetId: 'projects/<project-name>/assets/<asset-name>', // <> modify these
region: region,
scale: 30,
crs: 'EPSG:5070'
});
// Use the "crsTransform" export parameter instead of "scale" for more control
// over the output grid. Here, "crsTransform" is set to align the output grid
// with the grid of another dataset. To view an image's CRS transform:
// print(image.projection())
Export.image.toAsset({
image: image,
description: 'image_export_crstransform',
assetId: 'projects/<project-name>/assets/<asset-name>', // <> modify these
region: region,
crsTransform: [30, 0, -2493045, 0, -30, 3310005],
crs: 'EPSG:5070'
});
// If the export has more than 1e8 pixels, set "maxPixels" higher.
Export.image.toAsset({
image: image,
description: 'image_export_maxpixels',
assetId: 'projects/<project-name>/assets/<asset-name>', // <> modify these
region: region,
scale: 30,
crs: 'EPSG:5070',
maxPixels: 1e13
});
// The default "pyramidingPolicy" is mean. If data are categorical,
// consider mode.
Export.image.toAsset({
image: image.select('SR_B5'),
description: 'image_export_pyramiding',
assetId: 'projects/<project-name>/assets/<asset-name>', // <> modify these
region: region,
scale: 30,
crs: 'EPSG:5070',
pyramidingPolicy: {SR_B5: 'mode'}
});
การตั้งค่า Python
ดูข้อมูลเกี่ยวกับ Python API และการใช้ geemap เพื่อการพัฒนาแบบอินเทอร์แอกทีฟได้ที่หน้าสภาพแวดล้อม Python
import ee
import geemap.core as geemap
Colab (Python)
# A Landsat 8 surface reflectance image.
image = ee.Image(
'LANDSAT/LC08/C02/T1_L2/LC08_044034_20210508'
).select(['SR_B.']) # reflectance bands
# A region of interest.
region = ee.Geometry.BBox(-122.24, 37.13, -122.11, 37.20)
# Set the export "scale" and "crs" parameters.
task = ee.batch.Export.image.toAsset(
image=image,
description='image_export',
assetId='projects/<project-name>/assets/<asset-name>', # <> modify these
region=region,
scale=30,
crs='EPSG:5070'
)
task.start()
# Use the "crsTransform" export parameter instead of "scale" for more control
# over the output grid. Here, "crsTransform" is set to align the output grid
# with the grid of another dataset. To view an image's CRS transform:
# display(image.projection())
task = ee.batch.Export.image.toAsset(
image=image,
description='image_export_crstransform',
assetId='projects/<project-name>/assets/<asset-name>', # <> modify these
region=region,
crsTransform=[30, 0, -2493045, 0, -30, 3310005],
crs='EPSG:5070'
)
task.start()
# If the export has more than 1e8 pixels, set "maxPixels" higher.
task = ee.batch.Export.image.toAsset(
image=image,
description='image_export_maxpixels',
assetId='projects/<project-name>/assets/<asset-name>', # <> modify these
region=region,
scale=30,
crs='EPSG:5070',
maxPixels=1e13
)
task.start()
# The default "pyramidingPolicy" is mean. If data are categorical,
# consider mode.
task = ee.batch.Export.image.toAsset(
image=image.select('SR_B5'),
description='image_export_pyramiding',
assetId='projects/<project-name>/assets/<asset-name>', # <> modify these
region=region,
scale=30,
crs='EPSG:5070',
pyramidingPolicy={'SR_B5': 'mode'}
)
task.start()
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2026-01-08 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"]],["อัปเดตล่าสุด 2026-01-08 UTC"],[],[]]