Skip to content

Commit

Permalink
catching possible NA values in rainfall in micro_terra
Browse files Browse the repository at this point in the history
  • Loading branch information
mrke committed Aug 18, 2023
1 parent 6de8b57 commit f3ed05e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/micro_terra.R
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,7 @@ micro_terra <- function(
}
}#end check doing daily sims
RAINFALL <- RAINFALL3
RAINFALL[is.na(RAINFALL)] <- 0

SOLRhr<-rep(0,24*ndays)

Expand Down

0 comments on commit f3ed05e

Please sign in to comment.