- สตริง: ระบบจะถือว่าเป็นชื่อของคอลเล็กชัน
- รายการรูปภาพหรือสิ่งใดก็ตามที่ใช้สร้างรูปภาพได้
- รูปภาพเดียว
- ออบเจ็กต์ที่คำนวณแล้ว - ตีความใหม่เป็นคอลเล็กชัน
การใช้งาน | การคืนสินค้า |
---|---|
ee.ImageCollection(args) | ImageCollection |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|---|---|
args | ComputedObject|Image|List<Object>|String | อาร์กิวเมนต์ของตัวสร้าง |
ตัวอย่าง
โปรแกรมแก้ไขโค้ด (JavaScript)
print('Image collection from a string', ee.ImageCollection('COPERNICUS/S2_SR').limit(3)); var img1 = ee.Image('COPERNICUS/S2_SR/20170328T083601_20170328T084228_T35RNK'); var img2 = ee.Image('COPERNICUS/S2_SR/20170328T083601_20170328T084228_T35RNL'); var img3 = ee.Image('COPERNICUS/S2_SR/20170328T083601_20170328T084228_T35RNM'); print('Image collection from a list of images', ee.ImageCollection([img1, img2, img3])); print('Image collection from a single image', ee.ImageCollection(img1));
import ee import geemap.core as geemap
Colab (Python)
print('Image collection from a string:', ee.ImageCollection('COPERNICUS/S2_SR').limit(3).getInfo()) img1 = ee.Image('COPERNICUS/S2_SR/20170328T083601_20170328T084228_T35RNK') img2 = ee.Image('COPERNICUS/S2_SR/20170328T083601_20170328T084228_T35RNL') img3 = ee.Image('COPERNICUS/S2_SR/20170328T083601_20170328T084228_T35RNM') print('Image collection from a list of images:', ee.ImageCollection([img1, img2, img3]).getInfo()) print('Image collection from a single image:', ee.ImageCollection(img1).getInfo())