-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Gives better parsing of tasking info - Search by task ID now - Now outputs EECU and path for tasks that have those fields - Fixed size estimation for image vs image collection - Enhanced user docs and readme - added output from delete operation - Added some function descriptions & general improvements
- Loading branch information
Showing
19 changed files
with
325 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,41 @@ | ||
# GEE app source | ||
# GEE App to Script tool | ||
|
||
This tool writes out or prints the underlying earthengine code for any public earthengine app. The tool has an option to export the code into a javascript file that you can then paste into Google Earth Engine code editor. | ||
The App to Script tool in geeadd offers a convenient way to extract the underlying Earth Engine code from any public Earth Engine application. This tool provides two options: it can either print out the code or export it into a JavaScript file for easy integration into the Google Earth Engine code editor. | ||
|
||
![geeadd_app2script](https://user-images.githubusercontent.com/6677629/80331908-59c61300-8817-11ea-8075-fb0095f91dab.gif) | ||
#### Key Features | ||
|
||
Simple setup can be | ||
- **Code Extraction**: The tool seamlessly retrieves the Earth Engine code that powers any public Earth Engine application, providing users with a clear understanding of the underlying code structure. | ||
|
||
``` | ||
geeadd app2script --url "https://gena.users.earthengine.app/view/urban-lights" | ||
``` | ||
- **JavaScript Export**: Users have the option to export the code directly into a JavaScript file. This file can be opened in any text editor, allowing for easy modification and integration into the Google Earth Engine code editor. | ||
|
||
or write to a javascript file which you can then open with any text editor and paste in earthengine code editor | ||
#### Usage | ||
|
||
Using the App to Script tool is straightforward. Simply provide the URL of the public Earth Engine application you want to extract the code from. | ||
|
||
```bash | ||
# Print out the Earth Engine code | ||
geeadd app2script --url "https://gena.users.earthengine.app/view/urban-lights" | ||
``` | ||
|
||
```bash | ||
# Export the code to a JavaScript file | ||
geeadd app2script --url "https://gena.users.earthengine.app/view/urban-lights" --outfile "Full path to javascript.js" | ||
``` | ||
|
||
- `--url`: The URL of the public Earth Engine application. | ||
|
||
- `--outfile`: (Optional) The full path to the JavaScript file where you want to export the code. | ||
|
||
![GEE App to Script](https://user-images.githubusercontent.com/6677629/80331908-59c61300-8817-11ea-8075-fb0095f91dab.gif) | ||
|
||
#### Example | ||
|
||
The following example demonstrates how to use the App to Script tool to extract and export Earth Engine code: | ||
|
||
```bash | ||
# Print out the Earth Engine code | ||
geeadd app2script --url "https://gena.users.earthengine.app/view/urban-lights" | ||
``` | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,35 @@ | ||
# Copy assets | ||
# Copy Assets tool | ||
|
||
This script allows us to recursively copy entire folders, collections, images or tables. If you have read acess to assets from another user this will also allow you to copy assets from their assets. | ||
The Copy Assets tool in geeadd offers a versatile solution for copying Earth Engine assets efficiently. With its recursive capabilities, this tool empowers users to duplicate entire folders, collections, images, or tables seamlessly. Additionally, it allows users with read access to assets from other users to copy assets from their repositories, enhancing collaboration and asset management. | ||
|
||
![geeadd_copy](https://user-images.githubusercontent.com/6677629/80337918-183e6380-8829-11ea-8482-7359e88fdd75.gif) | ||
#### Key Features | ||
|
||
- **Comprehensive Asset Duplication**: The Copy Assets tool enables users to perform recursive copying of Earth Engine assets, ensuring that entire hierarchies of assets can be effortlessly duplicated. | ||
|
||
- **User-Friendly Interface**: The tool offers a straightforward command-line interface, making it accessible to users of all experience levels. | ||
|
||
- **Copy Assets from Other Users**: Users with read access to assets from other users can utilize this tool to copy assets from their repositories, facilitating collaborative projects and data sharing. | ||
|
||
#### Usage | ||
|
||
Using the Copy Assets tool is simple and intuitive, allowing users to specify the source and destination paths for asset duplication. | ||
|
||
```bash | ||
geeadd copy --initial "existing_asset_path" --final "new_asset_path" | ||
``` | ||
geeadd copy -h | ||
usage: geeadd copy [-h] [--initial INITIAL] [--final FINAL] | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
- `--initial`: The existing path of the assets you want to copy. | ||
|
||
Required named arguments.: | ||
--initial INITIAL Existing path of assets | ||
--final FINAL New path for assets | ||
- `--final`: The new path where you want to duplicate the assets. | ||
|
||
#### Example | ||
|
||
Here's an example demonstrating how to use the Copy Assets tool to duplicate Earth Engine assets: | ||
|
||
```bash | ||
geeadd copy --initial "users/your_username/your_collection" --final "users/your_username/copied_collection" | ||
``` | ||
|
||
![Copy GEE Assets](https://user-images.githubusercontent.com/6677629/80337918-183e6380-8829-11ea-8482-7359e88fdd75.gif) | ||
|
||
The Copy Assets tool in geeadd simplifies asset duplication and promotes efficient asset management within Google Earth Engine. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,29 @@ | ||
# Delete Assets | ||
# Delete Assets tool | ||
|
||
The delete is recursive, meaning it will delete also all children assets: images, collections and folders. Use with caution! | ||
The Delete Assets tool in GEEadd is a powerful utility designed to facilitate asset management within Google Earth Engine (GEE). This tool empowers users to perform recursive deletions of Earth Engine assets, including folders, collections, images, and their child assets. However, it is important to exercise caution while using this tool, as it permanently removes assets and their associated data. | ||
|
||
![geeadd_delete](https://user-images.githubusercontent.com/6677629/80338936-9d2a7c80-882b-11ea-948e-20baf061a2f2.gif) | ||
#### Key Features | ||
|
||
- **Comprehensive Asset Deletion**: The Delete Assets tool allows users to perform recursive deletions of assets, ensuring that entire hierarchies of assets can be removed with a single command. | ||
|
||
- **Use with Caution**: Due to the recursive nature of this tool, it will delete not only the specified asset but also all its child assets, including images, collections, and folders. Therefore, it is essential to use this tool with caution to avoid unintentional data loss. | ||
|
||
#### Usage | ||
|
||
Using the Delete Assets tool is straightforward, requiring only the specification of the target Earth Engine asset for deletion. | ||
|
||
```bash | ||
geeadd delete --id "asset_path_to_delete" | ||
``` | ||
> geeadd delete -h | ||
usage: geeadd delete [-h] --id ID | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
- `--id`: The full path to the asset you want to delete. This tool will recursively remove all child assets, including images, collections, and folders associated with the specified asset. | ||
|
||
Required named arguments.: | ||
--id ID Full path to asset for deletion. Recursively removes all | ||
folders, collections and images. | ||
#### Example | ||
|
||
Here's an example demonstrating how to use the Delete Assets tool to remove an Earth Engine asset and all its child assets: | ||
|
||
```bash | ||
geeadd delete --id "users/your_username/your_collection" | ||
``` | ||
|
||
![Delete GEE Assets](https://user-images.githubusercontent.com/6677629/80338936-9d2a7c80-882b-11ea-948e-20baf061a2f2.gif) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,29 @@ | ||
# Delete asset metadata | ||
# Delete metadata tool | ||
|
||
This tool allows you to delete a specific property across a metadata. This is useful to reset any property for an ingested collection. | ||
The Asset Metadata Delete tool in geeadd provides users with a valuable capability to delete specific properties from metadata associated with Earth Engine assets. This tool is particularly useful when you need to reset or remove a property value from the metadata of an ingested collection, image, or table. | ||
|
||
![geeadd_delete_metadata](https://user-images.githubusercontent.com/6677629/80341015-a9b0d400-882f-11ea-84ad-d7ac46798cc7.gif) | ||
#### Key Features | ||
|
||
- **Selective Metadata Property Deletion**: The Asset Metadata Delete tool allows users to selectively delete a specific property from the metadata associated with an Earth Engine asset. | ||
|
||
#### Usage | ||
|
||
Using the Asset Metadata Delete tool is straightforward, requiring the specification of the target Earth Engine asset and the property to be deleted from its metadata. | ||
|
||
```bash | ||
geeadd delete_metadata --asset "asset_path_here" --property "metadata_property_to_delete" | ||
``` | ||
> geeadd delete_metadata -h | ||
usage: geeadd delete_metadata [-h] --asset ASSET --property PROPERTY | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
- `--asset`: The path to the Earth Engine asset from which you want to remove a specific metadata property. | ||
|
||
- `--property`: The name of the metadata property that you want to delete. | ||
|
||
Required named arguments.: | ||
--asset ASSET This is the path to the earth engine asset whose | ||
permission you are changing collection/image | ||
--property PROPERTY Metadata name that you want to delete | ||
#### Example | ||
|
||
Here's an example illustrating how to use the Asset Metadata Delete tool to remove a specific property from the metadata of an Earth Engine asset: | ||
|
||
```bash | ||
geeadd delete_metadata --asset "users/your_username/your_collection" --property "description" | ||
``` | ||
|
||
![Delete Metadata GEE Asset](https://user-images.githubusercontent.com/6677629/80341015-a9b0d400-882f-11ea-84ad-d7ac46798cc7.gif) |
Oops, something went wrong.