This function uses the Sentinel-2 missions.
get_sent2(
aoi,
method = "S2_1C",
param = NULL,
stat = "median",
cloud_mask = TRUE,
startDate = "2015-04-01",
endDate = "2020-01-01",
mask = FALSE,
m.low = NULL,
m.high = NULL,
c.low = 1,
c.high = 12
)
A sf object indicating the extent of the geom.
A character
indicating what method to use, e.g. 'S2_1C' (default) or 'S2_2A'.
A character
indicating what band to visualize, e.g. 'Blue', 'Green', 'Red', 'NIR', 'NDVI', 'NDWI', 'NBR', etc.
A character
indicating what to reduce the imageCollection by, e.g. 'median' (default), 'mean', 'max', 'min', 'sum', 'stdDev', 'first'.
logical
whether to mask out certain cloud artifacts. TRUE (default).
character
format date, e.g. "2018-10-23"
character
format date, e.g. "2018-10-23"
logical
whether to mask out certain ranges
numeric
low value for mask, e.g. greater than 'm.low'
numeric
high value for mask, e.g. less than 'm.high'
numeric
lower month value for calendar range
numeric
higher month value for calendar range
A list of Earth Engine Objects and arguments.
if (FALSE) {
# Load Libraries
library(rgee)
rgee::ee_intialize()
library(exploreRGEE)
# Bring in data
huc <- exploreRGEE::huc
sent2_2A_SCL <- get_sent2(huc, method = 'S2_2A', param = 'SCL', startDate = '2018-01-01',
endDate = '2020-12-31', c.low = 6, c.high = 11)
}