I tried to download a sentinel image, but it seems not to work. It downloads a one band image and not 4,3,2 rgb combination as coded.

This is the code I'm using that just downloads 1 band:

var marco = /* color: #d63000 */ee.Geometry.Polygon(
    [[[-70.33198356628418, -16.667604212318242],
      [-70.33138275146484, -16.64129056542051],
      [-70.3795337677002, -16.641043857880046],
      [-70.3795337677002, -16.668426455517558]]]);

var sentinel = ee.Image('COPERNICUS/S2/20180726T144731_20180726T145459_T19KCB').select(['B4', 'B3', 'B2']);

 image: sentinel,
 description: 'imageToDriveExample',
 scale: 10,
 region: marco

1 Answer 1


The code works:

enter image description here

The result is a multiband raster with:

  • Band1: band4 of S-2
  • Band2: band3 of S-2
  • Band3: band2 of S-2
  • When I download it from Drive, the image weighs 100 kb and is all dark. Aug 9, 2018 at 20:58
  • @AlvaroMorales this image has a size of 880 kb. Maybe something is wrong with your Google Drive
    – aldo_tapia
    Aug 9, 2018 at 21:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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