Skip to content

Commit

Permalink
name gcm_input raster list
Browse files Browse the repository at this point in the history
  • Loading branch information
CeresBarros committed Dec 21, 2023
1 parent 47d20a5 commit 6100334
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/gcm.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#' @export
gcm_input <- function(dbCon, bbox = NULL, gcm = list_gcm(), ssp = list_ssp(), period = list_gcm_period(), max_run = 0L, cache = TRUE) {
# Load each file individually + select layers
res <- lapply(gcm, process_one_gcm2, ssp = ssp, period = period,
res <- sapply(gcm, process_one_gcm2, ssp = ssp, period = period,
bbox = bbox, dbnames = dbnames, dbCon = dbCon,
max_run = max_run, cache = cache)
max_run = max_run, cache = cache, USE.NAMES = TRUE, simplify = FALSE)
attr(res, "builder") <- "climr"

# Return a list of SpatRaster, one element for each model
Expand Down

0 comments on commit 6100334

Please sign in to comment.