gd_task_status {rgeedim} | R Documentation |
Get Earth Engine Task Status
Description
gd_task_status()
and gd_task_uri()
are helper functions for working with tasks scheduled with gd_export()
Usage
gd_task_status(x)
gd_task_uri(x, asset_only = TRUE)
Arguments
x |
An object of class |
asset_only |
Default: |
Value
gd_task_status()
: returns the status from an "ee.batch.Task"
object
gd_task_uri()
: returns the destination URI(s) associated with a task.
See Also
Examples
## Not run:
if (gd_is_initialized()) {
r <- gd_bbox(
xmin = -120.6032,
xmax = -120.5377,
ymin = 38.0807,
ymax = 38.1043
)
i <- gd_image_from_id('CSP/ERGo/1_0/US/CHILI')
ex <- gd_export(
i,
region = r,
type = "asset",
filename = "RGEEDIM_TEST",
folder = "your-project-name",
scale = 30
)
gd_task_status(ex)
r <- gd_download(
gd_task_uri(ex),
filename = "image.tif",
region = r,
overwrite = TRUE
)
library(terra)
plot(rast(r))
}
## End(Not run)
[Package rgeedim version 0.2.7 Index]