Transfers geometries to Earth Engine and extracts statistics using direct invocations of the reduceRegions method to avoid earthengine-api incompatibilities.
Usage
l4h_ee_extract(
image,
sf_region,
scale = NULL,
fun = "mean",
sf = TRUE,
tile_scale = 1,
quiet = FALSE,
force = FALSE,
...
)Arguments
- image
An
ee$Imageoree$ImageCollectionobject.- sf_region
An
sforsfcobject containing the regions of interest.- scale
Spatial resolution in meters. If
NULL, the native resolution is used.- fun
Reducer name (
"mean","sum", etc.) or anee$Reducerobject.- sf
Logical. If
TRUE, returns ansfobject; ifFALSE, atibble.- tile_scale
Scale factor for internal EE subdivisions (1 to 16). Default is 1.
- quiet
Logical. If
TRUE, suppresses the progress bar. Default isFALSE.- force
Logical. If
FALSE, evaluates representativeness before processing.- ...
Additional arguments passed internally to
rgee::sf_as_ee.
