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
)

Arguments

aoi

A sf object indicating the extent of the geom.

method

A character indicating what method to use, e.g. 'S2_1C' (default) or 'S2_2A'.

param

A character indicating what band to visualize, e.g. 'Blue', 'Green', 'Red', 'NIR', 'NDVI', 'NDWI', 'NBR', etc.

stat

A character indicating what to reduce the imageCollection by, e.g. 'median' (default), 'mean', 'max', 'min', 'sum', 'stdDev', 'first'.

cloud_mask

logical whether to mask out certain cloud artifacts. TRUE (default).

startDate

character format date, e.g. "2018-10-23"

endDate

character format date, e.g. "2018-10-23"

mask

logical whether to mask out certain ranges

m.low

numeric low value for mask, e.g. greater than 'm.low'

m.high

numeric high value for mask, e.g. less than 'm.high'

c.low

numeric lower month value for calendar range

c.high

numeric higher month value for calendar range

Value

A list of Earth Engine Objects and arguments.

Examples

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)


}