Skip to content

Commit

Permalink
minor bug fix for dates in multigrids
Browse files Browse the repository at this point in the history
  • Loading branch information
miturbide committed Sep 12, 2017
1 parent f122ac9 commit cbae13f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/makeMultiGrid.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@

makeMultiGrid <- function(..., spatial.tolerance = 1e-3, skip.temporal.check = FALSE) {
field.list <- list(...)
for(i in 1:length(field.list)){
if("var" %in% names(getShape(field.list[[i]])))
if(getShape(field.list[[i]])[["var"]] == 1)
field.list[[i]] <- redim(field.list[[i]], drop = T)
}
if (length(field.list) == 1) {
field.list <- unlist(field.list, recursive = FALSE)
}
Expand Down

0 comments on commit cbae13f

Please sign in to comment.