You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got this while I tried to OrdinaryKriging in a loop.
Here is part of code
for obse in ObseSites.items:
for j in range(len(obse.freqs)):
if math.isclose(obse.freqs[j], freq):
x.append(obse.x/1000.)
y.append(obse.y/1000.)
rxy.append(math.log10(obse.rxy[j].re))
pxy.append(DegtoFirstQuadrant(obse.pxy[j].re))
ryx.append(math.log10(obse.ryx[j].re))
pyx.append(DegtoFirstQuadrant(obse.pyx[j].re))
break
for j in range(len(component)):
ok = OrdinaryKriging(y, x, component[j], variogram_model='exponential', verbose=True)
z, ss = ok.execute('grid', gridy, gridx)
The error output is as below
Adjusting data for anisotropy...
Initializing variogram model...
I write this script to genarate figures, the size of 'x' and 'y' is 33, and the size of the mesh is [38,87]. During the whole workflow, I read two data files and generate two figures for each one, after the first figure generated successfully, the second one will jump out the error 'SVD did not converge' as attached picuture. In the beginning, I thought it might be the problem of my datafile, so I switched the order of the two datafile and read the 2nd first, then it worked and generated figure for the 2nd data file, but the same error occured while processing the 1st data file. So I got confused. Can you help me solving this? Thank you!
Attched are the error message captured and two figures generated. PyKrige is a convenient tool for the interpolation and plotting!
And another question, this subfigure seems not interpolate correctly, do you have some ideas about this? I can send you all the data if you want, this situation not only appeared here, but many other places.
Activity
MuellerSeb commentedon Aug 3, 2020
Hey there!
Where did it say something about SVD as you have written in the title?
Is there really an error? Or is it hanging at this point? If it is hanging, I think it could be at this line:
PyKrige/pykrige/core.py
Line 455 in b33e5d8
Or did you miss to copy the full output? How big is the size of
xandyin you case?Cheers, Sebastian
Ml0749276 commentedon Aug 4, 2020
Hi Sebastian,
Here is the full script
I write this script to genarate figures, the size of 'x' and 'y' is 33, and the size of the mesh is [38,87]. During the whole workflow, I read two data files and generate two figures for each one, after the first figure generated successfully, the second one will jump out the error 'SVD did not converge' as attached picuture. In the beginning, I thought it might be the problem of my datafile, so I switched the order of the two datafile and read the 2nd first, then it worked and generated figure for the 2nd data file, but the same error occured while processing the 1st data file. So I got confused. Can you help me solving this? Thank you!
Attched are the error message captured and two figures generated. PyKrige is a convenient tool for the interpolation and plotting!
The error message

The 1st data file's figure

The 2nd data file's figure

Ml0749276 commentedon Aug 4, 2020
And another question, this subfigure seems not interpolate correctly, do you have some ideas about this? I can send you all the data if you want, this situation not only appeared here, but many other places.
MuellerSeb commentedon Aug 5, 2020
Also in you case it could help to use the pseudo-inverse version from this branch:
https://github.com/GeoStat-Framework/PyKrige/tree/pseudo_inv
Then you can alter your call:
Maybe this helps. This will be in the next version.
Ml0749276 commentedon Aug 6, 2020
Hi Sebastian,
Thanks for your reply, I have tried as you said, it makes no difference.
MuellerSeb commentedon Aug 6, 2020
Could you check your data for
nans andinfs? That is often related to a svd problemMl0749276 commentedon Aug 26, 2020
Hi Sebastian,
I am on a business trip these days, I check the data and no
nanorinfis found.MuellerSeb commentedon Aug 10, 2022
Closing due to inactivity.