Skip to content

Commit

Permalink
rm all NA catch for MERRA
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejohnson51 committed Jul 12, 2023
1 parent eb6a74e commit 7485740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ dap_xyzv <- function(obj, varname = NULL, varmeta = FALSE) {
raw$nX[i] = length[which(dims == raw$X[i])]
raw$nY[i] = length[which(dims == raw$Y[i])]
#raw$nT[i] = length[which(dims == raw$T[i])]
if(all(is.na(raw$Z))){
if(is.na(raw$Z)[i]){
raw$nZ[i] = NA
} else {
raw$nZ[i] = length[which(dims == raw$Z[i])]
Expand Down

0 comments on commit 7485740

Please sign in to comment.