qgis-earthengine-plugin icon indicating copy to clipboard operation
qgis-earthengine-plugin copied to clipboard

Accept image collections in Map.addLayer

Open gena opened this issue 5 years ago • 0 comments

Add support for image collections in Map.addLayer

import ee
from ee_plugin import Map
image = ee.ImageCollection('NOAA/VIIRS/DNB/MONTHLY_V1/VCMCFG') \
  .filterDate('2017-01-01', '2017-01-02')\
  .select('avg_rad')
vis = {'bands': ['avg_rad'], 'min': 0.0, 'max': 30.0, 'palette': ['000004', '160b39', '400a67', '69166e', '902568', 'd94d3d', 'f1711f', 'fb9d07', 'f8cd37', 'fcffa4']}
Map.addLayer(image, vis, 'image')
Map.setCenter(37.7743, 48.0121, 13)

gena avatar Jan 14 '20 08:01 gena