Page 4 of 8

Re: General Questions in Raven

Posted: Fri Nov 10, 2017 5:26 am
by Symona
Konhee Lee wrote:I think you can put whatever number and it would not have an effect the process (given you aren't using other VIC processes). Let me know if having random values of the three terms messes things up.


Regarding this issue it seems that the soil properties VIC_ALPHA, VIC_ZMAX and VIC_ZMIN do not play a significant role as long as I do not set them zero. However there seems to be some connection because setting them 0 messes things up. Could someone please look at the connection a little closer?

Thanks a lot!

Re: General Questions in Raven

Posted: Wed Nov 15, 2017 12:16 am
by Konhee Lee
Hi Symona,

That's now in our to do list for next update.
Hopefully it gets fixed by the next release.

Regards,
Konhee

Re: General Questions in Raven

Posted: Wed Nov 15, 2017 3:23 am
by Symona
Okay, thanks for looking into it.

RavenR

Posted: Thu Nov 16, 2017 12:26 pm
by ephilip
Hi Rob,
While trying to plot using RavenR, I am getting following syntax error. Please help.

> annual.peak.error(sim,obs)
Error in data.frame(date.end = (lubridate::date(x)[ep])[2:length(ep)], :
arguments imply differing number of rows: 48, 50

Thank you
Elizabeth

Re: General Questions in Raven

Posted: Thu Nov 16, 2017 2:22 pm
by rchlumsk
Hi Elizabeth

Which version are you using? There is the zipped package available to download from the Raven website and the Github version.

Thanks,
Rob

Re: General Questions in Raven

Posted: Thu Nov 16, 2017 2:33 pm
by ephilip
rchlumsk wrote:Hi Elizabeth

Which version are you using? There is the zipped package available to download from the Raven website and the Github version.

Thanks,
Rob


I am using the RavenR Version: 1.0.2 and R Version 3.4.2.

Re: General Questions in Raven

Posted: Fri Nov 17, 2017 12:21 am
by rchlumsk
Hi Elizabeth

There is a new version of RavenR up on Github now with the bugs fixed, you can install directly for v1.0.4 from source tarball (https://github.com/rchlumsk/RavenR/tree/master/tarballs) or install the latest version directly from Github in R,

Code: Select all

library(devtools)
install_github("rchlumsk/RavenR")

Hope that helps! Please let me know via posts if you have any other RavenR issues.
Rob

Re: General Questions in Raven

Posted: Fri Nov 17, 2017 9:24 am
by ephilip
rchlumsk wrote:Hi Elizabeth

There is a new version of RavenR up on Github now with the bugs fixed, you can install directly for v1.0.4 from source tarball (https://github.com/rchlumsk/RavenR/tree/master/tarballs) or install the latest version directly from Github in R,

Code: Select all

library(devtools)
install_github("rchlumsk/RavenR")

Hope that helps! Please let me know via posts if you have any other RavenR issues.
Rob


Hi Rob,

Thank you for the help. It is working.

Now I am having errors on:

annual.peak.event(sim,obs,add.r2=F)
Error in as.POSIXlt.numeric(zoo::index(x)) : 'origin' must be supplied

annual.peak.event.error(sim,obs)
Error in as.POSIXlt.numeric(zoo::index(x)) : 'origin' must be supplied

annual.peak.timing.error(sim,obs)
Error in as.POSIXlt.numeric(zoo::index(x)) : 'origin' must be supplied

flowdurcurve.plot(myhyd$sim, prd='1999-10-01/2007-09-30',seasonal=F)
Error in as.POSIXlt.default(x, tz = tz(x)) :
do not know how to convert 'x' to class “POSIXlt”

Your help is highly appreciated

Thank you
Elizabeth

Re: General Questions in Raven

Posted: Fri Nov 17, 2017 10:24 am
by rchlumsk
Hi Elizabeth

This looks like a time series formatting error in the input data. Can you confirm that the sim and obs that you are supplying are being read in from file using the hyd.read function OR are formatted using the xts package? If within R, you use

Code: Select all

class(sim)


it should show up as class xts. If not then please format your data using the xts package. Here is a link as an example of formatting something into an xts format if needed. https://stackoverflow.com/questions/47143447/r-list-of-time-series-dates-need-to-break-out-in-order-to-perform-arima-style/47144634#47144634

Cheers,
Rob

Re: General Questions in Raven

Posted: Fri Nov 17, 2017 11:49 am
by ephilip
rchlumsk wrote:Hi Elizabeth

This looks like a time series formatting error in the input data. Can you confirm that the sim and obs that you are supplying are being read in from file using the hyd.read function OR are formatted using the xts package? If within R, you use

Code: Select all

class(sim)


it should show up as class xts. If not then please format your data using the xts package. Here is a link as an example of formatting something into an xts format if needed. https://stackoverflow.com/questions/47143447/r-list-of-time-series-dates-need-to-break-out-in-order-to-perform-arima-style/47144634#47144634

Cheers,
Rob


Hi Rob,

class(sim)
[1] "xts" "zoo"

yes, simulated from hyd.read function

hy<-hyd.read("run1_Hydrographs.csv")

Thank you
Elizabeth