geetools.batch.imagecollection.toDrive#
- geetools.batch.imagecollection.toDrive(collection, folder, namePattern='{id}', scale=30, dataType='float', region=None, datePattern=None, extra=None, verbose=False, **kwargs)#
Upload all images from one collection to Google Drive. You can use.
the same arguments as the original function ee.batch.export.image.toDrive.
- Parameters:
collection (ee.ImageCollection) – Collection to upload
folder (str) – Google Drive folder to export the images to
namePattern (str) – pattern for the name. See geetools.tools.image.make_name function and also geetools.tools.string.format function
scale (int) – scale of the image (side of one pixel). Defaults to 30 (Landsat resolution)
dataType (str) – as downloaded images must have the same data type in all bands, you have to set it here. Can be one of: “float”, “double”, “int”, “Uint8”, “Int8” or a casting function like ee.Image.toFloat
region (ee.Geometry.Rectangle or ee.Feature) – area to upload. Default to the footprint of the first image in the collection
datePattern (str) – pattern for date if specified in namePattern. Defaults to ‘yyyyMMdd’. See ee.Date.format for more details
extra (str) – extra parameters to parse to the name formatter
verbose (bool) – print name of each exporting task
- Returns:
list of tasks
- Return type:
list