geetools-code-editor
geetools-code-editor copied to clipboard
error with "Download.ImageCollection.toDrive"
Hello, thanks for your useful code. I'm exporting an image collection to drive using your code. But I encountered an error when I try to use name
in the parameter options
. Here is my code:
var areaName = "defaultexportArea" //"SDN2"; // name of ROI
var startDate = '2020-05-01';
var endDate = '2020-10-01';
var exportFolder = 'GEEdownload_bd';
var exportArea = ee.Geometry.Polygon([
[28.98855495720401,0.9531234556460979],
[29.32913112907901,0.9531234556460979],
[29.32913112907901,0.6949716650615738],
[28.98855495720401,0.6949716650615738],
[28.98855495720401,0.9531234556460979]]);
var dwCollection = ee.ImageCollection('GOOGLE/DYNAMICWORLD/V1')
.filterDate(startDate, endDate)
.filterBounds(exportArea)
var exportOptions = ee.Dictionary({
scale: 10,
region: exportArea,
type: 'float',
name: 'dw_{id}'
});
var batchExport = require('users/fitoprincipe/geetools:batch').Download.ImageCollection.toDrive;
batchExport(dwCollection, exportFolder + '-' + 'dynamic_world', exportOptions);
where exportArea
is a polygon. It raise this error:
"Invalid argument specified for ee.String(): function(){var d=Ga.apply(0,arguments).map(function(e){return c.er(e)});d=XSa(c,a,d);return c.lj(d)}"
Is there anything wrong in my script?