0

I am designing GEE App and want to download NDVI in GeoTIFF format using ee.Image.getDownloadURL for client side using following code:

var urlLabel = ui.Label('Download', {shown: true}); 
var btn_export = ui.Button({label:'Donwload Image (this an take a few minutes)', 
onClick: function(){ 
var downloadArgs = {
    name: 'Rice',
    crs: 'EPSG:4326',
    scale: 20,
    region: AOI
  };
  var url = range.getDownloadURL(downloadArgs);
  urlLabel.setUrl(url);
  urlLabel.style().set({shown: true});
},

but I am unable to download NDVI image.

1 Answer 1

1

You should try something like

Export.image.toDrive({image: dNBR, scale: 30, description: id, fileNamePrefix: 'dNBR', region: area, maxPixels: 1e10});

UseCase UN-Spider Code UN-Spider

1
  • Thankyou for your response, but I think this command doesn't work for Earth_Engine_App.
    – Aiman Nisa
    Jan 12, 2023 at 10:15

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.