hzambran / hydroGOF

Goodness-of-fit functions for comparison of simulated and observed hydrological time series
https://CRAN.R-project.org/package=hydroGOF
39 stars 13 forks source link

GOF error #13

Closed teaiii closed 9 months ago

teaiii commented 2 years ago

I have written an R script that calculates all the GOF statistics for a lot of data. I'm getting this error:

Error in if (sd.obs > 0) { : missing value where TRUE/FALSE needed

I know that I have some long runs of '0' obs, not missing, but '0'

What to do? na.rm = TRUE is not the answer.

Thank you, Tom

Doltrix commented 1 year ago

Hi, did you solve the problem?

_goftotal<-gof(time.serie.raster[,2:7672], time.serie.est[,2:7672],na.rm = TRUE) Error in if (sd.obs > 0) { : missing value where TRUE/FALSE needed

:/

hzambran commented 9 months ago

without a reproducible example it is impossible to analyse this issue.

This should have been solved in the new hydroGOF 0.5-0