お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ee.ImageCollection
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ImageCollection は、次の引数から構築できます。
- 文字列: コレクションの名前とみなされます。
- 画像のリスト、または画像の作成に使用できるもの。
- 単一の画像。
- 計算されたオブジェクト - コレクションとして再解釈されます。
用途 | 戻り値 |
---|
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));
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())
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003e\u003ccode\u003eee.ImageCollection\u003c/code\u003e can be constructed from a variety of inputs, including a string representing a collection name, a list of images, or a single image.\u003c/p\u003e\n"],["\u003cp\u003eUsing a string as input, such as a collection name like 'COPERNICUS/S2_SR', allows you to create an ImageCollection directly from that dataset.\u003c/p\u003e\n"],["\u003cp\u003eWhen providing a list of images or a single image, the \u003ccode\u003eee.ImageCollection\u003c/code\u003e constructor creates a collection containing those specified elements.\u003c/p\u003e\n"],["\u003cp\u003eComputed objects are also valid inputs, and they are reinterpreted as a collection when used to create an \u003ccode\u003eee.ImageCollection\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# ee.ImageCollection\n\n\u003cbr /\u003e\n\nImageCollections can be constructed from the following arguments:\n\n\u003cbr /\u003e\n\n- A string: assumed to be the name of a collection,\n\n- A list of images, or anything that can be used to construct an image.\n\n- A single image.\n\n- A computed object - reinterpreted as a collection.\n\n| Usage | Returns |\n|----------------------------|-----------------|\n| `ee.ImageCollection(args)` | ImageCollection |\n\n| Argument | Type | Details |\n|----------|-----------------------------------------------|----------------------------|\n| `args` | ComputedObject\\|Image\\|List\\\u003cObject\\\u003e\\|String | The constructor arguments. |\n\nExamples\n--------\n\n### Code Editor (JavaScript)\n\n```javascript\nprint('Image collection from a string',\n ee.ImageCollection('COPERNICUS/S2_SR').limit(3));\n\nvar img1 = ee.Image('COPERNICUS/S2_SR/20170328T083601_20170328T084228_T35RNK');\nvar img2 = ee.Image('COPERNICUS/S2_SR/20170328T083601_20170328T084228_T35RNL');\nvar img3 = ee.Image('COPERNICUS/S2_SR/20170328T083601_20170328T084228_T35RNM');\nprint('Image collection from a list of images',\n ee.ImageCollection([img1, img2, img3]));\n\nprint('Image collection from a single image',\n ee.ImageCollection(img1));\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\nprint('Image collection from a string:',\n ee.ImageCollection('COPERNICUS/S2_SR').limit(3).getInfo())\n\nimg1 = ee.Image('COPERNICUS/S2_SR/20170328T083601_20170328T084228_T35RNK')\nimg2 = ee.Image('COPERNICUS/S2_SR/20170328T083601_20170328T084228_T35RNL')\nimg3 = ee.Image('COPERNICUS/S2_SR/20170328T083601_20170328T084228_T35RNM')\nprint('Image collection from a list of images:',\n ee.ImageCollection([img1, img2, img3]).getInfo())\n\nprint('Image collection from a single image:',\n ee.ImageCollection(img1).getInfo())\n```"]]