gd_get_asset {rgeedim} | R Documentation |
Get, Update, or Delete an Earth Engine Asset by ID
Description
Get, Update, or Delete an Earth Engine Asset by ID
Usage
gd_get_asset(x, silent = FALSE)
gd_update_asset(
x,
asset,
update = c("start_time", "end_time", "properties"),
silent = FALSE
)
gd_delete_asset(x, silent = FALSE)
Arguments
x |
Asset ID name |
silent |
Silence errors? Default: |
asset |
Used only for |
update |
Used only for |
Value
try-error
on error. gd_get_asset()
: a named list containing information and properties of an Earth Engine asset
gd_update_asset()
: This function is called for side-effects (updates the specified asset fields)
gd_delete_asset()
: This function is called for side-effects (deletes the specified asset)
Examples
## Not run:
# get asset from project by ID
a <- gd_get_asset("projects/your-project-name/assets/YOUR_ASSET_ID")
## End(Not run)
## Not run:
# change description in `"properties"`
a$properties$description <- "foo"
# update asset
gd_update_asset("projects/your-project-name/assets/YOUR_ASSET_ID", a, "properties")
## End(Not run)
## Not run:
# remove an asset from project
gd_delete_asset("projects/your-project-name/assets/YOUR_ASSET_ID")
## End(Not run)
[Package rgeedim version 0.2.7 Index]