geetools.batch.imagecollection.toCloudStorage#
- geetools.batch.imagecollection.toCloudStorage(collection, bucket, folder=None, namePattern='{id}', region=None, scale=30, dataType='float', datePattern=None, verbose=False, extra=None, **kwargs)#
Upload all images from one collection to Google Cloud Storage. You can.
use the same arguments as the original function ee.batch.export.image.toCloudStorage.
- Parameters:
collection (ee.ImageCollection) – Collection to upload
bucket – Google Cloud Storage bucket name
folder (str) – Google Cloud Storage prefix to export the images to
namePattern (str) – pattern for the name. See make_name function
region (ee.Geometry.Rectangle or ee.Feature) – area to upload. default to the footprint of the first image in the collection
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
datePattern (str) – pattern for date if specified in namePattern. Defaults to ‘yyyyMMdd’