if (FALSE) {
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')
## export to Google Drive (default `type="drive"`)
# res <- gd_export(i, filename = "RGEEDIM_TEST", scale = 100, region = r)
## export to `type="asset"`, then download by ID (stored in project assets)
# res <- gd_export(
# i,
# "RGEEDIM_TEST",
# type = "asset",
# folder = "rgeedim-demo",
# scale = 100,
# region = r
# )
# gd_download("projects/rgeedim-demo/assets/RGEEDIM_TEST", filename = "test.tif")
## export to Google Cloud Bucket with `type="cloud"`,
## where `folder` is the bucket path without `"gs://"`
# res <- gd_export(i, filename = "RGEEDIM_TEST.tif", type = "cloud",
# folder = "your-bucket-name", scale = 100, region = r)
}
}
Run the code above in your browser using DataLab