toCloudStorage#

static geetools.ee_export.ExportAccessor.imagecollection.toCloudStorage(imagecollection, index_property='system:id', description='', folder='', **kwargs)#

Creates a list of tasks to export an EE ImageCollection to Google cloud.

The method will create a folder in Google cloud bucket 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 bucket 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.toCloudStorage

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 = geetools.batch.Export.imagecollection.toDrive(collection, "system:index", "test export")