R/ca_stars_mosaic.R
ca_stars_mosaic.Rd
Mosaic stars objects into a seamless array for large areas
ca_stars_mosaic(
stars_lst,
index_tbl = NULL,
geom_mask = NULL,
combine_6d = FALSE,
quiet = FALSE
)
A list of stars rasters
A tibble of metadata for stars_lst
A sf or sfc polygon object to crop the mosaiced raster
Combine multiple 3D rasters into one 6D raster
Suppress messages
If combine_6d = FALSE
, a list of 3D rasters will be returned (x, y and date/year). If combine_6d = TRUE
, a 6D stars
raster will be returned (x, y, date/year, scenario, GCM, climate variable).
stars_lst is a list of stars objects downloaded by ca_getrst_stars
and turned into a list by
ca_stars_read
. Note that both of these functions must be run with `sidecar = TRUE` (the default).
combine_6d = TRUE
will return the mosaic as a six-dimensional raster. This further requires that the raster was
originally downloaded using an API request that specified the dataset by scenario, GCM, and climate variable (i.e., not
by a slug).
if (FALSE) {
}