General Questions in Raven

Ask questions or report problems
ephilip
Posts: 48
Joined: Sun Jun 25, 2017 8:37 pm

Re: General Questions in Raven

Postby ephilip » Mon Jan 08, 2018 11:47 am

Hi Rob,

While running the code from R console in my computer, I am getting the following msg:

install.packages("devtools")
Warning: package ‘devtools’ is in use and will not be installed
> library(devtools)
> devtools::install_github("rchlumsk/RavenR")
Installation failed: Timeout was reached: Connection timed out after 10000 milliseconds

I haven't used github. How would you connect to github?

Please help

Thank you
Elizabeth
rchlumsk wrote:Hi Elizabeth

I did not add the tarball for v1.0.5 this time, but you can install the latest package directly from GitHub using the devtools package.

Code: Select all

install.packages("devtools")
library(devtools)
devtools::install_github("rchlumsk/RavenR")


Check out the description of the RavenR package here: https://github.com/rchlumsk/RavenR

Cheers,
Rob

rchlumsk
Posts: 156
Joined: Fri Sep 16, 2016 3:18 pm

Re: General Questions in Raven

Postby rchlumsk » Mon Jan 08, 2018 12:56 pm

This just sounds like you have issues connecting to Github, I would just try again later.

I will post a tarball of the new version when I get a chance just in case.

Rob
Robert Chlumsky
rchlumsk@uwaterloo.ca

ephilip
Posts: 48
Joined: Sun Jun 25, 2017 8:37 pm

Re: General Questions in Raven

Postby ephilip » Mon Jan 08, 2018 3:21 pm

rchlumsk wrote:This just sounds like you have issues connecting to Github, I would just try again later.

I will post a tarball of the new version when I get a chance just in case.

Rob


Hi Rob,

Sorry for disturbing you again. Few questions.

1. How do you connect to Github?

2. You type the following commands in the R console or not?

install.packages("devtools")
library(devtools)
devtools::install_github("rchlumsk/RavenR")


3. I downloaded the Raven-master.zip file that was uploaded on Jan 7, 2018. Tried to install it using R console and RStudio. It is putting the package RavenR-master in the library.


library(RavenR-master)
Error in library(RavenR - master) : 'package' must be of length 1

changed the library to RavenR
> library(RavenR)
Error in library(RavenR) : ‘RavenR’ is not a valid installed package

Please help me with this.

Thank you
Elizabeth

rchlumsk
Posts: 156
Joined: Fri Sep 16, 2016 3:18 pm

Re: General Questions in Raven

Postby rchlumsk » Tue Jan 09, 2018 11:38 pm

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
Robert Chlumsky
rchlumsk@uwaterloo.ca

ephilip
Posts: 48
Joined: Sun Jun 25, 2017 8:37 pm

Re: General Questions in Raven

Postby ephilip » Wed Jan 10, 2018 9:23 am

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


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

ephilip
Posts: 48
Joined: Sun Jun 25, 2017 8:37 pm

Re: General Questions in Raven

Postby ephilip » Thu Jan 11, 2018 12:51 pm

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

rchlumsk
Posts: 156
Joined: Fri Sep 16, 2016 3:18 pm

Re: General Questions in Raven

Postby rchlumsk » Sun Jan 14, 2018 9:10 am

Hi Elizabeth

With the flowdurcurve.plot function it uses the hydrograph object from hyd.extract function, so it looks for the $sim and $obs objects within the hydrograph argument. If you use the hyd.extract function and pass that on to the flowdurcurve.plot function, it should work.

For the other errors, I am unable to reproduce them. Could you send me an example of the code breaking?

Thanks,
Rob
Robert Chlumsky
rchlumsk@uwaterloo.ca

ephilip
Posts: 48
Joined: Sun Jun 25, 2017 8:37 pm

Re: General Questions in Raven

Postby ephilip » Sun Jan 14, 2018 3:26 pm

rchlumsk wrote:Hi Elizabeth

With the flowdurcurve.plot function it uses the hydrograph object from hyd.extract function, so it looks for the $sim and $obs objects within the hydrograph argument. If you use the hyd.extract function and pass that on to the flowdurcurve.plot function, it should work.

For the other errors, I am unable to reproduce them. Could you send me an example of the code breaking?

Thanks,
Rob


Hi Rob,
Let me clarifying a bit more.
Yes hyd.extract function was called first for Flow Duration Curve. Yet getting error.

For other errors, in the previous version, if the observed flow data is not complete, it was giving warning. Now with the newer version, it is giving the error (if not the observed data is complete). This is a typical situation when calibration and validation data are complete and for the application period the data is incomplete.

Please help.

Thank you
Elizabeth

Marianuro
Posts: 1
Joined: Sun Feb 26, 2017 8:56 am

View first unread post

Postby Marianuro » Thu Jan 25, 2018 1:01 pm

It seems that the new version of the site is really aggressive with resetting the "View First Unread Post" button. On the older version of the site, I could log on use that button on multiple sub-forums and it would always be set for when I last logged in.

Now, if Im in the Stripertalk forum, by the time Im done and move on to look at another forum, the View First Unread Post button only goes to posts made in the last few minutes. Something with how the cookie is read/written?

Am I missing a setting, or is this the nature of the new forums?

Im sure I didnt explain that clearly. Let me know if you need me to clarify.
Проститутки метро домодедовское недорого. Я веселая и озорная кошечка, с богатой фантазией в играх. Темпераментная и ненасытная в сексе, доведу своими сексуальными играми до вершины удовольствий. http://colouratelier.ru

ephilip
Posts: 48
Joined: Sun Jun 25, 2017 8:37 pm

General Questions in Raven

Postby ephilip » Tue Feb 06, 2018 10:17 am

Hi James,

User manual (page 82) talks about CLOUDCOV_UBC where user need to provide temperature ranges within the .rvt file. Even though I did not provide any value in the .rvt file the model ran with no errors and gave the fraction of the cloud cover in the ForcingFunctions.csv file. Please clarify.

Thank you
Elizabeth


Return to “Help & Support”