Open tanharri opened 11 months ago
Hi,
I haven't tested covariate_river for very large river networks, so I cannot say much about its runtime in such cases. If you don't mind, I could have a look at your script and see whether there's a way to improve the function's speed. You can find my e-mail in the package description.
As for your further questions, I'm not quite sure I fully understood them. Probably, some more context on what your goal is would help. Anyways, you can indeed attach objects to an existing river object. SC is equivalent to AG in the sense that there's a 1:1 correspondence between the two levels (for each reach there's a respective subcatchment).
Cheers, Luca
Hi,
I am trying to use the function covariate_river to attach the values of a covariate to a river network. The runtime of this function seems to be exceptionally long. I was wondering if this would be expected given the size and structure of the river network, and whether there is a faster solution.
For example, given the way the covariates are attached in the edith vignette https://cran.r-project.org/web/packages/eDITH/vignettes/eDITH.html
Could I extract an average along the aggregated vertices and attach them similarly to how elev is incorporated? And in that sense, is SC equivalent to AG, given that the river object must be aggregated to run covariate_river?
Cheers
rivnet::covariate_river(my_covar, river, categorical = categorical)