ee_image_info: Approximate size of an EE Image object

Description Usage Arguments Value Examples

View source: R/ee_image.R

Description

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

Usage

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

Arguments

image

Single-band EE Image object.

getsize

Logical. If TRUE, the size of the object is 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 containing information about the number of rows (nrow), number of columns (ncol), total number of pixels (total_pixel), and image size (image_size).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
library(rgee)
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")$select("B4")
ee_image_info(l8)

## End(Not run)

csaybar/rgee documentation built on March 11, 2021, 5:48 a.m.