Skip to content

Commit

Permalink
Merge branch 'devel' into ana-devel
Browse files Browse the repository at this point in the history
  • Loading branch information
anacv committed Aug 14, 2019
2 parents b4c231d + c38b865 commit 6a17889
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/bindGrid.R
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@ bindGrid.time <- function(..., tol) {
n.vars <- getShape(ref, "var")
if (n.vars > 1) refdates <- rep(list(refdates), n.vars)
ref[["Dates"]] <- refdates
ref %<>% sortDim.time()
ref <- tryCatch({sortDim.time(ref)}, error = function(err) {
warning("time dimension could not be sorted!")
ref})
ref <- redim(ref, drop = TRUE)
return(ref)
}
Expand Down

0 comments on commit 6a17889

Please sign in to comment.