– ciąg znaków: uznawany za nazwę kolekcji;
– lista obrazów lub elementów, z których można utworzyć obraz;
– pojedynczy obraz,
– Obiekt obliczony – ponownie zinterpretowany jako kolekcja.
| Wykorzystanie | Zwroty | 
|---|---|
| ee.ImageCollection(args) | ImageCollection | 
| Argument | Typ | Szczegóły | 
|---|---|---|
| args | ComputedObject|Image|List<Object>|String | Argumenty konstruktora. | 
Przykłady
Edytor kodu (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)
display('Image collection from a string:', ee.ImageCollection('COPERNICUS/S2_SR').limit(3)) 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') display('Image collection from a list of images:', ee.ImageCollection([img1, img2, img3])) display('Image collection from a single image:', ee.ImageCollection(img1))