-
Notifications
You must be signed in to change notification settings - Fork 147
/
Copy pathee_utils_create_manifest_image.Rd
76 lines (66 loc) · 2.05 KB
/
ee_utils_create_manifest_image.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-upload.R
\name{ee_utils_create_manifest_image}
\alias{ee_utils_create_manifest_image}
\title{Create a manifest to upload an image}
\usage{
ee_utils_create_manifest_image(
gs_uri,
assetId,
properties = NULL,
start_time = "1970-01-01",
end_time = "1970-01-01",
pyramiding_policy = "MEAN",
returnList = FALSE,
quiet = FALSE
)
}
\arguments{
\item{gs_uri}{Character. GCS full path of the image to upload to Earth Engine assets,
e.g. gs://rgee_dev/l8.tif}
\item{assetId}{Character. How to call the file once uploaded
to the Earth Engine Asset. e.g. users/datacolecfbf/l8.}
\item{properties}{List. Set of parameters to be set up as properties
of the EE object.}
\item{start_time}{Character. Sets the start time property (system:time_start).
It could be a number (timestamp) or a date.}
\item{end_time}{Character. Sets the end time property (system:time_end).
It could be a number (timestamp) or a date.}
\item{pyramiding_policy}{Character. The pyramid reduction policy to use.}
\item{returnList}{Logical. If TRUE will return the "manifest" as a list. Otherwise,
will return a JSON file.}
\item{quiet}{Logical. Suppress info message.}
}
\value{
If \code{returnList} is TRUE, a list otherwise a JSON file.
}
\description{
Create a manifest to upload a GeoTIFF to Earth Engine asset folder. The
"manifest" is simply a JSON file that describe all the upload parameters. See
\url{https://developers.google.com/earth-engine/guides/image_manifest} to get more
details.
}
\examples{
\dontrun{
library(rgee)
ee_Initialize()
tif <- system.file("tif/L7_ETMs.tif", package = "stars")
# Return a JSON file
ee_utils_create_manifest_image(
gs_uri = "gs://rgee_dev/l8.tif",
assetId = "users/datacolecfbf/l8"
)
# Return a list
ee_utils_create_manifest_image(
gs_uri = "gs://rgee_dev/l8.tif",
assetId = "users/datacolecfbf/l8",
returnList = TRUE
)
}
}
\seealso{
Other generic upload functions:
\code{\link{ee_utils_create_manifest_table}()},
\code{\link{local_to_gcs}()}
}
\concept{generic upload functions}