Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tracek committed Dec 11, 2016
1 parent cff5b27 commit c9fba80
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ usage: geebam upload [-h] -u USER --source SOURCE --dest DEST [-m METADATA]
[--large] [--nodata NODATA]
Google Earth Engine Batch Asset Uploader
Google Earth Engine Batch Asset Manager
optional arguments:
-h, --help show this help message and exit
Expand Down Expand Up @@ -129,6 +129,13 @@ Console output:
2016-07-17 16:14:16,898 :: root :: INFO :: Collection users/pinkiepie/test removed
```

### Delete all directories / collections based on a Unix-like pattern

```
geebam delete users/pinkiepie/*weird[0-9]?name*
```


### Upload a directory with images to your myfolder/mycollection and associate properties with each image:
```
geebam upload -u pinkiepie@gmail.com --source path_to_directory_with_tif -m path_to_metadata.csv --dest users/pinkiepie/myfolder/myponycollection
Expand Down
4 changes: 1 addition & 3 deletions geebam.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import argparse
import logging
import os
import sys

import ee

Expand Down Expand Up @@ -42,7 +40,7 @@ def main(args=None):
parser = argparse.ArgumentParser(description='Google Earth Engine Batch Asset Manager')

subparsers = parser.add_subparsers()
parser_delete = subparsers.add_parser('delete', help='Deletes collection and all items inside.')
parser_delete = subparsers.add_parser('delete', help='Deletes collection and all items inside. Supports Unix-like wildcards.')
parser_delete.add_argument('id', help='Full path to asset for deletion. Recursively removes all folders, collections and images.')
parser_delete.set_defaults(func=delete_collection_from_parser)

Expand Down

0 comments on commit c9fba80

Please sign in to comment.