Description Usage Arguments Value See Also Examples
Print and return metadata about Spatial Earth Engine Objects.
ee_print
can retrieve information about the number of images
or features, number of bands or geometries, number of pixels, geotransform,
data type, properties and object size.
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 | ee_print(eeobject, ...)
## S3 method for class 'ee.geometry.Geometry'
ee_print(eeobject, ..., clean = FALSE, quiet = FALSE)
## S3 method for class 'ee.feature.Feature'
ee_print(eeobject, ..., clean = FALSE, quiet = FALSE)
## S3 method for class 'ee.featurecollection.FeatureCollection'
ee_print(eeobject, ..., f_index = 0, clean = FALSE, quiet = FALSE)
## S3 method for class 'ee.image.Image'
ee_print(
eeobject,
...,
img_band,
time_end = TRUE,
compression_ratio = 20,
clean = FALSE,
quiet = FALSE
)
## S3 method for class 'ee.imagecollection.ImageCollection'
ee_print(
eeobject,
...,
time_end = TRUE,
img_index = 0,
img_band,
compression_ratio = 20,
clean = FALSE,
quiet = FALSE
)
|
eeobject |
Earth Engine Object. Available for: Geometry, Feature, FeatureCollection, Image or ImageCollection. |
... |
ignored |
clean |
Logical. If TRUE, the cache will be cleaned. |
quiet |
Logical. Suppress info message |
f_index |
Numeric. Index of the |
img_band |
Character. Band name of the |
time_end |
Logical. If TRUE, the system:time_end property in ee$Image
is also returned. See |
compression_ratio |
Numeric. Measurement of the relative reduction
in size of data representation produced by a data compression algorithm
(ignored if |
img_index |
Numeric. Index of the |
A list with the metadata of the Earth Engine object.
Other helper functions:
ee_help()
,
ee_monitoring()
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 | ## Not run:
library(rgee)
ee_Initialize()
# Geometry
geom <- ee$Geometry$Rectangle(-10,-10,10,10)
Map$addLayer(geom)
ee_print(geom)
# Feature
feature <- ee$Feature(geom, list(rgee = "ee_print", data = TRUE))
ee_print(feature)
# FeatureCollection
featurecollection <- ee$FeatureCollection(feature)
ee_print(featurecollection)
# Image
srtm <- ee$Image("CGIAR/SRTM90_V4")
ee_print(srtm)
srtm_clip <- ee$Image("CGIAR/SRTM90_V4")$clip(geom)
srtm_metadata <- ee_print(srtm_clip)
srtm_metadata$img_bands_names
# ImageCollection
object <- ee$ImageCollection("LANDSAT/LC08/C01/T1_TOA")$
filter(ee$Filter()$eq("WRS_PATH", 44))$
filter(ee$Filter()$eq("WRS_ROW", 34))$
filterDate("2014-03-01", "2014-08-01")$
aside(ee_print)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.