This function allows the user to provide a earth engine image/imageCollection character
string which will help with simple processing.
get_any(
aoi,
i_type = "ImageCollection",
method,
param = NULL,
stat = "median",
startDate = NULL,
endDate = NULL,
mask = FALSE,
m.low = NULL,
m.high = NULL,
c.low = NULL,
c.high = NULL
)
A sf object indicating the extent of the geom.
A character
indicating what type of image, e.g. 'ImageCollection' or 'Image'.
A character
indicating what imageCollection to use, e.g. "UMD/hansen/global_forest_change_2019_v1_7".
A character
indicating what band to select.
A character
indicating what to reduce the imageCollection by, e.g. 'median' (default), 'mean', 'max', 'min', 'sum', 'stdDev', 'first'.
character
format date, e.g. "1999-10-23"
character
format date, e.g. "1999-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.
Use how you would normally call a GEE session online but with method as your collection snippet.
if (FALSE) {
# Load Libraries
library(rgee)
rgee::ee_intialize()
library(exploreRGEE)
# Bring in data
huc <- exploreRGEE::huc
# get any Image or ImageCollection
forest_cover_loss <- get_any(huc, i_type = "Image",
method = 'UMD/hansen/global_forest_change_2019_v1_7',
param = 'lossyear')
}