Earth Engine ขอแนะนำ
ระดับโควต้าที่ไม่ใช่เชิงพาณิชย์ เพื่อปกป้องทรัพยากรการประมวลผลที่ใช้ร่วมกันและรับประกันประสิทธิภาพที่เชื่อถือได้สำหรับทุกคน โปรเจ็กต์ที่ไม่ใช่เชิงพาณิชย์ทั้งหมดจะต้องเลือกระดับโควต้าภายในวันที่
27 เมษายน 2026 หรือจะใช้ระดับชุมชนโดยค่าเริ่มต้นก็ได้ โควต้าระดับจะมีผลกับโปรเจ็กต์ทั้งหมด (ไม่ว่าวันที่เลือกระดับจะเป็นวันใด) ในวันที่
27 เมษายน 2026 ดูข้อมูลเพิ่มเติม
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
ส่งความคิดเห็น
ee.ImageCollection.toList
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงผลองค์ประกอบของคอลเล็กชันเป็นรายการ
การใช้งาน การคืนสินค้า ImageCollection. toList (count, offset )รายการ
อาร์กิวเมนต์ ประเภท รายละเอียด ดังนี้ collection FeatureCollection คอลเล็กชันอินพุตที่จะดึงข้อมูล countจำนวนเต็ม จำนวนสูงสุดขององค์ประกอบที่จะดึงข้อมูล offsetจำนวนเต็ม ค่าเริ่มต้น: 0 จำนวนองค์ประกอบที่จะทิ้งจากจุดเริ่มต้น หากตั้งค่าไว้ ระบบจะดึงข้อมูลองค์ประกอบ (ออฟเซ็ต + จำนวน) และทิ้งองค์ประกอบออฟเซ็ตแรก
ตัวอย่าง
โปรแกรมแก้ไขโค้ด (JavaScript)
// Note: ee.ImageCollection.toList may take a lot of time and memory to run,
// since it must generate all of the results in order to gather them into a
// list. Large collections and/or complex computations can produce memory
// limitation errors.
// A Landsat 8 TOA image collection (1 year of images at a specific point).
var col = ee . ImageCollection ( 'LANDSAT/LC08/C02/T1_TOA' )
. filterBounds ( ee . Geometry . Point ( - 90.70 , 34.71 ))
. filterDate ( '2020-01-01' , '2021-01-01' );
print ( 'Image collection' , col );
// Get the first 3 images as a list of images.
var imgListFirst3 = col . toList ( 3 );
print ( 'First 3 images' , imgListFirst3 );
// Get the second 3 images as a list of images (use the offset parameter).
var imgListSecond3 = col . toList ( 3 , 3 );
print ( 'Second 3 images' , imgListSecond3 );
การตั้งค่า Python
ดูข้อมูลเกี่ยวกับ Python API และการใช้ geemap เพื่อการพัฒนาแบบอินเทอร์แอกทีฟได้ที่หน้า
สภาพแวดล้อม Python
import ee
import geemap.core as geemap
Colab (Python)
# Note: ee.ImageCollection.toList may take a lot of time and memory to run,
# since it must generate all of the results in order to gather them into a
# list. Large collections and/or complex computations can produce memory
# limitation errors.
# A Landsat 8 TOA image collection (1 year of images at a specific point).
col = ee . ImageCollection ( 'LANDSAT/LC08/C02/T1_TOA' ) . filterBounds (
ee . Geometry . Point ( - 90.70 , 34.71 )) . filterDate ( '2020-01-01' , '2021-01-01' )
display ( 'Image collection:' , col )
# Get the first 3 images as a list of images.
img_list_first3 = col . toList ( 3 )
display ( 'First 3 images:' , img_list_first3 )
# Get the second 3 images as a list of images (use the offset parameter).
img_list_second3 = col . toList ( 3 , 3 )
display ( 'Second 3 images:' , img_list_second3 )
ส่งความคิดเห็น
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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"],[],["The function `ImageCollection.toList()` converts a collection's elements into a list. It takes a `count` argument, specifying the maximum number of elements to include. An optional `offset` argument allows discarding a set number of elements from the beginning. For example, setting a count of 3 and an offset of 3 returns elements four, five and six. The function is used with the input `collection`, a `FeatureCollection`. This process potentially demands significant resources, particularly with large collections.\n"]]