Skip to main content
22 events
when toggle format what by license comment
Feb 16, 2022 at 18:38 comment added sermomon @RodrigoE.Principe How can I export each image using its id as name? Im trying this: batch.Download.ImageCollection.toDrive(s2_ext_features, 'folder', {name: '{id}', scale: 10, region: extent, type: 'float'});
May 7, 2021 at 12:52 comment added Abhilash Singh Chauhan Thanks @RodrigoE.Principe, it is working fine now, Anyway It worked with this way too, code.earthengine.google.co.in/45a6aae544eb3e593763b7db5e5b6e2e , thanks for your time.
May 7, 2021 at 12:42 comment added Rodrigo E. Principe @AbhilashSinghChauhan the images you are trying to export do not have a system:time_start property that defines the image date, but it has a system:index property, you can use it like this: code.earthengine.google.com/1d071cdafffeb3e13f682ab9ae65aac3
May 7, 2021 at 12:16 comment added Abhilash Singh Chauhan Also I tried to follow your batch download from Github so that I dynamically changes the name of raster while uploading to GoogleDrive github.com/fitoprincipe/geetools-code-editor/wiki/… , but it is also not working, not sure where I am making a mistake code.earthengine.google.com/41a6afc69b53e35c03a0c75b1459a30b
May 7, 2021 at 12:11 comment added Abhilash Singh Chauhan @RodrigoE.Principe, thanks for replying, But it is taking the same name for all the files. Can you please see it here at code.earthengine.google.com/fd3c14cce2cd537e0be434f9a0a567d1
May 7, 2021 at 12:07 comment added Rodrigo E. Principe Hi @AbhilashSinghChauhan, I changed the link to the documentation, if you see there you'll see that there is a name parameter that you can use to do what you want
May 7, 2021 at 12:05 history edited Rodrigo E. Principe CC BY-SA 4.0
improved link to documentation
May 6, 2021 at 11:53 comment added Abhilash Singh Chauhan Hey @RodrigoE.Principe, your answers were helpful but is there any way by which it automatically takes the name of Image/raster assigned to a variable, because I have to give a name every time to each raster in the task while uploading to google drive? and there is also confusion when list is large, it may lead to assigning wrong name manually.
Jul 18, 2020 at 0:15 comment added Rodrigo E. Principe She, can be that.. if the parameter collection is an ImageCollection, that error should not occur
Jul 17, 2020 at 17:32 comment added Waleed93 @oveflow-police & @rodrigo-e-principe, I believe collection.size() is not a function error is because ee.List of images is being provided, not ee.ImageCollection to the export function
Feb 12, 2020 at 11:22 comment added Rodrigo E. Principe better open an issue here if you are using the JS API or here if you are using the Python API
Feb 12, 2020 at 0:21 comment added OverFlow Police when I do { var batch = require('users/fitoprincipe/geetools:batch'); batch.Download.ImageCollection.toDrive(Grant_2018_IC_first, 'LLL', { scale: 10 // , // region: geometry.getInfo()["coordinates"] // or geometry.getInfo() }) } I get the error { collection.size is not a function }
Nov 13, 2019 at 12:41 comment added Rodrigo E. Principe github.com/gee-community/gee_tools // pip install geetools
Nov 13, 2019 at 2:24 comment added OverFlow Police how the python one works? what is the package for it?
Nov 2, 2018 at 1:22 comment added Rodrigo E. Principe It's fine! glad to help =)
Nov 2, 2018 at 1:16 vote accept Ana
Nov 2, 2018 at 1:16 comment added Ana Thanks a lot for sharing your work and time! It is working now!... don't have enough points to vote, but really grateful.
Nov 2, 2018 at 1:09 history edited Rodrigo E. Principe CC BY-SA 4.0
correction
Nov 1, 2018 at 21:05 comment added Ana code.earthengine.google.com/98cb1e9305ac67eabb9188c79a8229fd
Nov 1, 2018 at 20:59 comment added Rodrigo E. Principe get a link and pass it to me (as a comment here)
Nov 1, 2018 at 20:59 comment added Ana Hola Rodrigo. I followed your advice and now I'm getting $name is not defined in this scope, what I'm doing is: // Map the function . var filtered_1 = filtered.map(maskL8sr); var listOfImages = filtered_1.toList(filtered_1.size()); var Image1 = listOfImages.get(0); var Image2 = listOfImages.get(1); var Test = ee.ImageCollection.fromImages([Image1, Image2]); print('Test',Test) batch.Download.ImageCollection.toDrive(Test, 'Landsat8', {name:'Test', scale: 30, region: geometry })
Nov 1, 2018 at 16:40 history answered Rodrigo E. Principe CC BY-SA 4.0