local_to_gcs: Upload local files to google cloud storage

Description Usage Arguments Value Examples

View source: R/utils-upload.R

Description

Upload images or tables into Google Cloud Storage for EE asset ingestion tasks.

Usage

1
local_to_gcs(x, bucket = NULL, quiet = FALSE)

Arguments

x

Character. filename.

bucket

bucket name you are uploading to

quiet

Logical. Suppress info message.

Value

Character which represents the full name of the object in the GCS bucket specified.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
library(rgee)
library(stars)
ee_reattach()

# Initialize a specific Earth Engine account and
# Google Cloud Storage credentials
ee_Initialize(
  email = "data.colec.fbf@gmail.com",
  gcs = TRUE
)

# Define an image.
tif <- system.file("tif/L7_ETMs.tif", package = "stars")
local_to_gcs(x = tif, bucket = 'rgee_dev')

## End(Not run)

ryali93/rgee documentation built on May 13, 2020, 4:34 a.m.