Skip to content

Commit

Permalink
Fix error in internal function scope
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedia committed Jun 28, 2018
1 parent 6a1697c commit e0216d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/ps2psl.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ ps2psl <- function(ps, tas, zgs) {
l <- lapply(1:n.mem, function(x) {
p <- subsetGrid(ps, members = x, drop = TRUE) %>% redim(member = FALSE) %>% extract2("Data") %>% array3Dto2Dmat()
t <- subsetGrid(tas, members = x, drop = TRUE) %>% redim(member = FALSE) %>% extract2("Data") %>% array3Dto2Dmat()
aux <- .reducePressure(p = p, t = t, zgs = zgs, direction = "ps2psl")
aux <- reducePressure(p = p, t = t, zgs = zgs, direction = "ps2psl")
psl$Data <- mat2Dto3Darray(aux, coords$x, coords$y)
return(psl)
})
Expand Down
2 changes: 1 addition & 1 deletion R/psl2ps.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ psl2ps <- function(psl, tas, zgs) {
l <- lapply(1:n.mem, function(x) {
p <- subsetGrid(psl, members = x, drop = TRUE) %>% redim(member = FALSE) %>% extract2("Data") %>% array3Dto2Dmat()
t <- subsetGrid(tas, members = x, drop = TRUE) %>% redim(member = FALSE) %>% extract2("Data") %>% array3Dto2Dmat()
aux <- .reducePressure(p = p, t = t, zgs = zgs, direction = "psl2ps")
aux <- reducePressure(p = p, t = t, zgs = zgs, direction = "psl2ps")
ps$Data <- mat2Dto3Darray(aux, coords$x, coords$y)
return(ps)
})
Expand Down

0 comments on commit e0216d8

Please sign in to comment.