Help

8 views
Skip to first unread message

docw...@gmail.com

unread,
Dec 21, 2020, 5:56:03 AM12/21/20
to hydromad users
hello can someone help me, when I run fitByOptim I find this error message;

> SefraFit <- fitByOptim(SefraMod, samples = 20,
+ method = "PORT")

Error in rval[i, j, drop = drop., ...] : indice hors limites
Error in rval[i, j, drop = drop., ...] : indice hors limites

Thanks

Willem Vervoort

unread,
Dec 28, 2020, 1:01:10 AM12/28/20
to hydromad-users
Dear docwafa,
without providing any more information about the model you are trying to fit and a sample of your data it is difficult to answer your question
Knowing what version of hydromad and R you are running would also be helpful

Have you checked the github site: https://github.com/josephguillaume/hydromad
We have been doing a bit of work on hydromad and it would be good to make sure you have the latest release

Regards
Willem

--
You received this message because you are subscribed to the Google Groups "hydromad users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hydromad-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hydromad-users/d7d5828f-7fa1-4ef3-b808-3b7f3ba070dan%40googlegroups.com.

wafa doc

unread,
Dec 28, 2020, 9:46:23 AM12/28/20
to hydroma...@googlegroups.com
I work with R 3.4.4 and  Hydromad model with "cwi" SMA and "expuh" routing,  as follows:
> SefraMod <- hydromad(ts24s, sma = "cwi", routing = "expuh",
+ tau_s = c(5, 100), tau_q = c(0, 5), v_s = c(0,1))
> print(SefraMod)

Hydromad model with "cwi" SMA and "expuh" routing:
Start = NA, End =

SMA Parameters:
      lower upper    
tw        0   100    
f         0     8    
scale    NA    NA    
l         0     0 (==)
p         1     1 (==)
t_ref    20    20 (==)
Routing Parameters:
      lower upper  
tau_s     5   100  
tau_q     0     5  
v_s       0     1  
> xyplot(SefraMod)

Error in rval[i, j, drop = drop., ...] : indice hors limites


but finally the problem is not in the calibration is it just after the modeling at the level of graphic representation"xyplot"


a sample of my data is attached
Thanks for your response and attention.

pq_10-2000.csv

Willem Vervoort

unread,
Dec 28, 2020, 9:45:42 PM12/28/20
to hydromad-users
Dear Wafa,
looking at your exampled data, I think you need to reread the discussion we had previously: https://groups.google.com/g/hydromad-users/c/b4gq-SQf1G0/m/KuH-1oaUBwAJ

regards
Willem

wafa doc

unread,
Dec 30, 2020, 5:15:47 AM12/30/20
to hydroma...@googlegroups.com
Thank you again, Mr Willem, I did a research and found that the date format was not a problem; despite this I modified my data as you said but it remains the same problem.

greetings

Willem Vervoort

unread,
Dec 30, 2020, 5:39:19 AM12/30/20
to hydromad-users
Hi Wafa,
so does your modified data conform the examples in the tutorial?
Regards
Willem

Reply all
Reply to author
Forward
0 new messages