Create a composite image from elements of an image collection.
gd_composite(x, ...)an object inheriting from geedim.collection.MaskedCollection, such as from gd_search() or gd_collection_from_list()
additional arguments to geedim.collection.MaskedCollection$composite()
a composite geedim.mask.MaskedImage object
if (FALSE) { # gd_is_initialized() && !inherits(requireNamespace("terra", quietly = TRUE), "try-error")
# \donttest{
library(terra)
b <- terra::vect('POLYGON((-121.355 37.560, 
                           -121.355 37.555,
                           -121.350 37.555, 
                           -121.350 37.560,
                           -121.355 37.560))',
                 crs = "OGC:CRS84")
if (gd_is_initialized())
  gd_composite(gd_search(gd_collection_from_name("USGS/3DEP/1m"),
                         region = b),
               resampling = "bilinear")
# }
}