-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cholmod error 'index out of range' at file ../core/cholmo d_triplet.c, line 451 #12
Comments
It seems like it is one specific entry:
Produces:
Other pairs after that one don't cause issues. |
Hi, I've started looking at this but might not have access to a machine with quite enough memory to reproduce it. I know this is old, but could you update the gdistance, raster, terra, and Matrix packages and try running it again? They've seen significant updates over the last year and it's possible your issue was fixed in the process. It could save me a lot of effort trying to reproduce a problem that might not be a problem anymore. |
Hi, thanks for looking into this. I don't currently have access to a similar server. I will try to reproduce this issue as soon as I do. |
It seems that one error is no longer there, but now after doing:
I can share rst_na (a raster for the whole of North America) if that helps. (this is following the topoDistance function topoSurface, not sure if the issue is in that approach) I get: Error in ..subscript.1ary.mat(x, i) : |
I am getting this error when working with very large rasters.
The error comes from the last line:
h.dist[adj] <- 1/h.dist[adj]
If I do something like:
h.dist[tail(adj)] <- 1/h.dist[tail(adj)]
or
h.dist[adj[1:10,]] <- 1/h.dist[adj[1:10,]]
It works fine. The adj matrix has 1164557166 rows, so I don't know whether there is a hard limit on the indexing that can be handled by sparse matrices?
I guess I can do a for loop and process it in chunks, would that work?
The text was updated successfully, but these errors were encountered: