band | R Documentation |
This function allows the user to pass a previously created get_*() object to get a time series from a collection, e.g. banding/toBands. This uses the ee_extract function from rgee.
band( imageCol, geeFC = NULL, scale, band = NULL, temporal = "yearly", temporal_stat = "median", lazy = FALSE, reducer = "median", variable = NULL, ggplot = FALSE, save.plot = F, user_geom = NULL, startDate = NULL, endDate = NULL, c.low = NULL, c.high = NULL )
imageCol |
A previously created get_* object or ee.ImageCollection |
geeFC |
A known GEE FeatureCollection or asset, e.g. "USGS/WBD/2017/HUC12" |
scale |
|
band |
A |
temporal |
A |
temporal_stat |
A |
lazy |
|
reducer |
A |
variable |
|
ggplot |
|
save.plot |
|
user_geom |
|
startDate |
|
endDate |
|
c.low |
|
c.high |
|
A data.frame
and a side-effect plot (if ggplot = TRUE); unless using save.plot
then a list with data.frame
and ggplot.
If using a get_() object band() doesn't use the image generated. It only uses the ImageCollection. Additional arguments to pass if using a ImageCollection without get_()'s are the startDate, endDate, c.low and c.high arguments. Faster with points or centroids of polygons. If lazy is TRUE, the function will be run in the background.
## Not run: # Load Libraries library(rgee) rgee::ee_intialize() 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) # without plotting save to object ld8_ts <- ld8 %>% band(scale = 30, band = 'NDVI') # with plotting as side-effect ld8 %>% band(scale = 30, band = 'NDVI', ggplot = TRUE, variable = 'name') # save both plot and data ld8_ts <- ld8 %>% band(scale = 30, band = 'NDVI', ggplot = TRUE, variable = 'name', save.plot = TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.