Learn R Programming

rgee (version 0.5.0)

ee_get_date_ic: Get the date of a EE ImageCollection

Description

Get the date of a EE ImageCollection

Usage

ee_get_date_ic(x, time_end = FALSE)

Arguments

x

ee$ImageCollection object

time_end

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

Value

A data.frame.

Details

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

Examples

Run this code
# NOT RUN {
library(rgee)
library(sf)

ee_reattach()
ee_Initialize()

nc <- st_read(system.file("shape/nc.shp", package = "sf")) %>%
  st_transform(4326) %>%
  sf_as_ee()

ee_s2 <- ee$ImageCollection("COPERNICUS/S2")$
  filterDate("2016-01-01", "2016-01-31")$
  filterBounds(nc)

ee_get_date_ic(ee_s2)
# }

Run the code above in your browser using DataLab