ee.ImageCollection

ImageCollection은 다음 인수로 구성할 수 있습니다.

  - 문자열: 컬렉션의 이름으로 간주됩니다.

  - 이미지 목록 또는 이미지를 구성하는 데 사용할 수 있는 항목

  - 단일 이미지

  - 계산된 객체 - 컬렉션으로 재해석됩니다.

사용반환 값
ee.ImageCollection(args)ImageCollection
인수유형세부정보
argsComputedObject|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));

Python 설정

Python API 및 geemap를 사용한 대화형 개발에 관한 자세한 내용은 Python 환경 페이지를 참고하세요.

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())