[R-sig-Geo] gdistance resistanceDistance error
ignacio.quintero
ignacioquinterom at gmail.com
Wed May 9 01:32:43 CEST 2012
Dear all,
I have came across the same error using resistanceDistance (and not
costDistance with same data):
"#Get matrix of resistance distances.
Error in Cholesky(Lr) : CHOLMOD factorization was unsuccessful
In addition: Warning message:
In Cholesky(Lr) :
Cholmod warning 'not positive definite' at
file:../Cholesky/t_cholmod_rowfac.c, line 432"
I was using also a very large raster grid (~5000000 cells). This seems to be
the problem (do not know if because of memory): I cropped the same big
raster into a smaller one containing the locality points (and, of course, a
big frame outside; however, currently, I do not know if the frame extent
will change the results...) and it worked perfectly.
Hope this helps (although I would like to know the exact problem (memory or
other issue) with the resistanceDistance function)
Best,
Ignacio
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/gdistance-resistanceDistance-error-tp7076485p7541017.html
Sent from the R-sig-geo mailing list archive at Nabble.com.
More information about the R-sig-Geo
mailing list