geetools.batch.utils.createAssets#
- geetools.batch.utils.createAssets(asset_ids, asset_type, mk_parents)#
Creates the specified assets if they do not exist.
This is a fork of the original function in ‘ee.data’ module with the difference that.
If the asset already exists but the type is different that the one we want, raise an error
Starts the creation of folders since ‘user/username/’
Will be here until I can pull requests to the original repo
- Parameters:
asset_ids (list) – list of paths
asset_type (str) – the type of the assets. Options: “ImageCollection” or “Folder”
mk_parents (bool) – make the parents?
- Returns:
A description of the saved asset, including a generated ID