geetools.batch.imagecollection.toAsset#
- geetools.batch.imagecollection.toAsset(collection, assetPath, namePattern=None, scale=30, region=None, create=True, verbose=False, datePattern='yyyyMMdd', extra=None, **kwargs)#
Upload all images from one collection to a Earth Engine Asset.
You can use the same arguments as the original function ee.batch.export.image.toDrive.
- Parameters:
collection (ee.ImageCollection) – Collection to upload
assetPath (str) – path of the asset where images will go
namePattern (str) – pattern for the name. If None, it uses the position of the image in the image collection as the name. Otherwise see geetools.tools.image.make_name function and also geetools.tools.string.format 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)
- Returns:
list of tasks
- Return type:
list