Description Usage Arguments Examples
View source: R/processSatelliteSeries.R
Reduces a time series of satellite observations for each point to a maximum value for the specified windows. Requires readr, lubridate, and dplyr. Initial setup is for exports from Jill's GEE script '02.1x_satelliteSampler_forScymOffline'
1 2 | getWindowGCVIs_fromFile(df_file, datasource, maskClouds = FALSE,
w1_doy1 = 165, w1_doy2 = 200, w2_doy1 = 201, w2_doy2 = 240)
|
df_file |
Data.frame containing a veg index of interest |
datasource |
"Landsat" or "Sentinel" |
maskClouds |
should cloud qa be applied? defaults to FALSE |
w1_doy1 |
first day of first window; default is US maize |
w1_doy2 |
last day of first window; default is US maize |
w2_doy1 |
first day of second window; default is US maize |
w2_doy2 |
last day of second window; default is US maize |
1 2 3 4 5 6 7 | # to apply to a list of files:
landsatFiles <- list.files(gDrive, pattern=landsatBaseName, full.names = TRUE)
# check file sizes and drop empty exports
landsatFilesb <- landsatFiles[sapply(landsatFiles, file.size) > 2]
# load/get window GCVIs - default windows
landsat_gcvi <- purrr::map_df(landsatFilesb, getWindowGCVIs_fromFile,
datasource = "Landsat", maskClouds = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.