Commit 86ce3449 authored by David Watkins's avatar David Watkins
Browse files

na val fix

parent c30c25a3
......@@ -268,7 +268,7 @@ importWaterML1 <- function(obs_url,asDateTime=FALSE, tz="UTC"){
#replace no data vals with NA, change attribute df
noDataVal <- as.numeric(varText$noDataValue)
if(nObs > 0 & obsColName %in% names(nObs)){
if(nObs > 0 & obsColName %in% names(obsDF)){
obsDF[[obsColName]][obsDF[[obsColName]] == noDataVal] <- NA
}
varText$noDataValue <- NA
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment