Get the approximate number of rows, cols, and size of a single-band Earth Engine Image.
ee_image_info(image, getsize = TRUE, compression_ratio = 20, quiet = FALSE)
Single-band EE Image object.
Logical. If TRUE, the size of the object is estimated.
Numeric. Measurement of the relative data size
reduction produced by a data compression algorithm (ignored if
getsize
is FALSE). By default is 20.
Logical. Suppress info message
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).
if (FALSE) {
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)
}