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