Learn R Programming

rgee (version 0.5.0)

ee_image_info: Approximate size of an EE Image object

Description

Get the approximate number of rows, cols, and size of an Earth Engine Image.

Usage

ee_image_info(image, getsize = TRUE, compression_ratio = 20, quiet = FALSE)

Arguments

image

EE Image object.

getsize

Logical. If TRUE, the size of the object will be estimated.

compression_ratio

Numeric. Measurement of the relative reduction in size of data representation produced by a data compression algorithm (ignored if getsize is FALSE). By default is 20

quiet

Logical. Suppress info message

Value

A list of parameters

Examples

Run this code
# NOT RUN {
library(rgee)

ee_reattach()
ee_Initialize()

# World SRTM
srtm <- ee$Image("CGIAR/SRTM90_V4")
ee_image_info(srtm)

# Landast8
l8 <- ee$Image("LANDSAT/LC08/C01/T1_SR/LC08_038029_20180810")
ee_image_info(l8)
# }

Run the code above in your browser using DataLab