ee_timeseries | R Documentation |
This function allows the user to pass a previously created get_*() object or ee ImageCollection to get a time series. This uses the ee_extract function from rgee and does some tidying to return a sf data.frame.
ee_timeseries(imageCol, ...) ## S3 method for class 'ee.imagecollection.ImageCollection' ee_timeseries( imageCol, geom, geeFC = NULL, scale, temporal = "yearly", temporal_stat = "mean", reducer = "mean", lazy = FALSE, startDate = NULL, endDate = NULL, months = NULL, ... ) ## S3 method for class 'exploreList' ee_timeseries( imageCol, geeFC = NULL, scale, temporal = "yearly", temporal_stat = "mean", reducer = "mean", lazy = FALSE, ... )
imageCol |
A previously created get_* object or ee ImageCollection |
... |
extra args to pass on |
geom |
A sf data.frame object. |
geeFC |
A known GEE FeatureCollection or asset, e.g. "USGS/WBD/2017/HUC12" |
scale |
|
temporal |
A |
temporal_stat |
A |
reducer |
A |
lazy |
|
startDate |
|
endDate |
|
months |
|
## Not run: # Load Libraries library(rgee) ee_Initialize() library(exploreRGEE) # Bring in data huc <- exploreRGEE::huc ld8 <- get_landsat(huc, method = 'ld8', startDate = '2014-01-01', endDate = '2018-12-31', c.low = 6, c.high = 11) # save both plot and data ld8_ts <- ld8 %>% ee_timeseries() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.