Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with "Download.ImageCollection.toDrive" #11

Open
markkua opened this issue Aug 16, 2022 · 0 comments
Open

error with "Download.ImageCollection.toDrive" #11

markkua opened this issue Aug 16, 2022 · 0 comments

Comments

@markkua
Copy link

markkua commented Aug 16, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant