Dear all,
I am trying to get the latest available sentinel 2 satellite image from Google Earth Engine through the rgee
Package.
Using the following code I can download all the images available in the last 180 days above my study area.
s2 <- ee$ImageCollection("COPERNICUS/S2_SR")
s2_ocona <- s2$
filterBounds(roi)$
filter(ee$Filter$lte("CLOUDY_PIXEL_PERCENTAGE", 30))$
filter(ee$Filter$date(paste(Sys.Date()-180),paste(Sys.Date())))
But I would like to download the last available image instead, is there any way I can do this?