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.