How can I download all the satellite images covering an entire country(Kenya) for a period of years from Google Earth Engine? I drew a large geometry polygon over the entire country and then tried to get the images by using filterBounds() but doesnt seem to be working. What am I doing wrong?

enter image description here

var roi = /* color: #0b4a8b */ee.FeatureCollection(
            [[[41.484375, -1.6477220517969224],
              [39.5068359375, 3.447624666646865],
              [35.2880859375, 4.981505049328245],
              [33.99169921875, 4.23685605976896],
              [34.98046875, 2.1088986592431382],
              [33.99169921875, -0.9447814006873896],
              [39.2431640625, -4.740675384778361]]]),
          "system:index": "0"

var image = ee.Image(ee.ImageCollection('MODIS/MOD09A1')
.filterDate('2010-01-01', '2013-12-31')
Map.addLayer(image, {bands: ['sur_refl_b01', 'sur_refl_b03', 
'sur_refl_b04'], max: 0.5, gamma: 2}, "Modis Image");
  • Depends on the country and the desired scale. The whole US would be difficult anyhow, but e.g. the Netherlands on a scale of 1:200.000 you could do manually. Using QGis and a WMS, you could build a script, that exports the current screen as a geotiff, then moves to the next cell of a predefined raster and does the same and so on. Some more details would be helpful. – Erik Feb 16 '18 at 11:37
  • I want satellite data on surface reflectance, land cover and temperature from MODIS for the entire country of Kenya from 2003-2015 – Vaderstalk Feb 16 '18 at 11:42
  • It is indeed possible, but might not be very useful. What have you tried so far? There are multiple tutorials on filtering the data and exporting results. The documentation is a good starting point. – Kersten Feb 16 '18 at 11:51
  • 2
    Then why do you want to use google earth? Why not directly download the data from NASA? – Erik Feb 16 '18 at 11:57
  • 1
    You could try to dive deeper on GEE and process the images with it, you can always ask for help in here =) – Rodrigo E. Principe Feb 16 '18 at 14:30

Your problem is that MODIS doesn't have CLOUD_COVER metadata, so filtering for it returns no image. The MODIS images you're accessing are global, so that sort of metadata doesn't make any sense.

Also, your scaling is off (you need to specify a min and the images are scaled by 0.0001.

var image = ee.Image(ee.ImageCollection('MODIS/MOD09A1')
  .filterDate('2010-01-01', '2013-12-31')
Map.addLayer(image, {
  bands: ['sur_refl_b01', 'sur_refl_b04', 'sur_refl_b03'], min:0, max: 4000},
  "Modis Image");

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.