ee_get_img_date: Get the date of a EE Image

Description Usage Arguments Details Value Examples

View source: R/ee_Date.R

Description

Get the date of a EE Image

Usage

1
ee_get_img_date(x, time_end = FALSE)

Arguments

x

EE Image or ImageCollection object

time_end

Logical. If TRUE, the system:time_end property will also be returned. See details.

Details

system:time_start set the start period of data acquisition while system:time_end does the same for the end period. See this link for getting more information.

Value

An List object with the id, time_start and time_end (if time_end argument is TRUE) of the image.

Examples

1
2
3
4
5
6
7
library(rgee)
ee_reattach()
ee_Initialize()
l8 <- ee$Image('LANDSAT/LC08/C01/T1_TOA/LC08_044034_20140318')
ee_get_img_date(l8)
srtm <- ee$Image('CGIAR/SRTM90_V4')
ee_get_img_date(srtm, time_end = TRUE)

ryali93/rgee documentation built on May 13, 2020, 4:34 a.m.