toDrive#
- static geetools.ExportAccessor.imagecollection.toDrive(imagecollection, index_property='system:id', description='', folder='', **kwargs)#
Creates a list of tasks to export an EE ImageCollection to Google Drive.
The method will create a folder in Google Drive with the description value and populate it with the exported images. Each image in the Collection Will be named using the index_property value of the image. If no Folder is provided the folder will be created at the root of the current drive and use the description name.
- Parameters:
imagecollection (ee.ImageCollection) – The image collection to export.
index_property (str) – The property of the image to use as name. Default is
"system:id".description (str) – The description of the task.
folder (str) – The folder id where to export the image collection. It will be stored at the root of the drive.
**kwargs – every parameter that you would use for a vanilla
ee.batch.Export.image.toDrive()
- Returns:
The list of created tasks
- Return type:
list[ee.batch.Task]
Examples
import ee import geetools ee.Initialize() # create a test image collection collection = ee.ImageCollection("COPERNICUS/S2").limit(5) # export the collection tasks = ee.batch.Export.geetools.imagecollection.toDrive(collection, "system:index", "test export")