Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.ImageCollection
Stay organized with collections
Save and categorize content based on your preferences.
ImageCollections can be constructed from the following arguments:
- A string: assumed to be the name of a collection,
- A list of images, or anything that can be used to construct an image.
- A single image.
- A computed object - reinterpreted as a collection.
Usage | Returns | ee.ImageCollection(args) | ImageCollection |
Argument | Type | Details | args | ComputedObject|Image|List<Object>|String | The constructor arguments. |
Examples
Code Editor (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 setup
See the
Python Environment page for information on the Python API and using
geemap
for interactive development.
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())
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-08 UTC.
[null,null,["Last updated 2025-07-08 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```"]]