0

I am completely new to GEE and want to obtain Modis burned area product for the years 2017-2020 as tiff-files. I worked out this code, but when I run the code it says in the console: object.name is not a function and Invalid GeoJSON geometry. As a geometry I created a rectangle of my study area. What am I doing wrong here?

var startDate = '2017-01-01';
var endDate = '2020-12-31';
var dataset = ee.ImageCollection('MODIS/006/MCD64A1')
                  .filterDate(startDate, endDate)
                  .filterBounds(geometry);
print(dataset);
var batch = require('users/fitoprincipe/geetools:batch');
batch.Download.ImageCollection.toDrive(dataset, 'Folder', 
                {scale: 10, 
                 region: geometry.getInfo()["coordinates"], 
                 type: 'float'});
0

It's the way you use a geometry (hand drawn) versus what the custom function is expecting. I assume. But this works:

var batch = require('users/fitoprincipe/geetools:batch');
batch.Download.ImageCollection.toDrive(dataset, 'Folder', 
                {scale: 10, 
                 region: geometry, 
                 type: 'float'});

Although chrome will probably throw you a warning first which you ignore (wait) before the download tasks appear.

2
  • Thanks for the reply. I was able to run the task, however it did not finished and I canceled it after one hour... Dec 3 '21 at 11:26
  • One hour already? How big is your geometry? Can take some time to finish large tasks.
    – Jobbo90
    Dec 3 '21 at 14:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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