ephilip wrote:Good Morning Rob,
Installed the new package. All functions are working except the flow duration curve. It is giving the same previous error.
>myhy<-hyd.read("run1_Hydrographs.csv")
> sim<-myhy$sim
> flowdurcurve.plot(myhy$sim, prd="1979-10-01/1982-10-01",seasonal=F)
Error in as.POSIXlt.default(x, tz = tz(x)) :
do not know how to convert 'x' to class “POSIXlt”
Thank you
Elizabeth
Hi Rob,
One more problem. Previously(RavenR v 1.0.4) annual.peak() function was working in all cases.
Now with new RavenR (V 1.0.5), in some of the cases, the functions are not working. I am getting the error
> annual.peak(sim,obs,axis.zero=T)
Error in x[[jj]][iseq] <- vjj : replacement has length zero
> annual.peak.event(sim,obs,add.r2=F)
Error in as.POSIXlt.numeric(zoo::index(x)) : 'origin' must be supplied
In addition: Warning messages:
1: In FUN(temp, ...) : no non-missing arguments to max; returning -Inf
2: In FUN(temp, ...) : no non-missing arguments to max; returning -Inf
3: In FUN(temp, ...) : no non-missing arguments to max; returning -Inf
Same error for these functions as well.
annual.peak.event.error(sim,obs)
annual.peak.timing.error(sim,obs)
Is it because of the missing data in the observed data. Would you please help
Thank you
Elizabeth
rchlumsk wrote:Hi Elizabeth
1. You can connect to Github via internet connection through the devtools functions, if it didn't work before I would just try again
2. Yes, those commands will install the devtools package, load it, and use the install_github function from devtools to install a package from Github directly. Note that I just uploaded a tarball of v1.0.5 in case you wish to use that instead.
3. The command to load the library should be library(RavenR). This will not work until the RavenR library is installed as per step 2 or the tarball.
Cheers,
Rob