I am working on a project using numpy and scipy and I need to fill in nanvalues. I am currently using scipy.interpolate.rbf, but it continues to cause python to crash, so try hard / except that it won't even save it. However, after launching it several times, it seems that it can continue to fail in cases where there is data in the middle, surrounded by all nans, like an island. Is there a better solution for this that won't crash?
By the way, this is a lot of data that I need to extrapolate. Sometimes up to half the image (70x70, shades of gray), but it should not be ideal. This is part of the image stitching program, so if it looks like actual data, it will work. I tried the closest neighbor to populate nans, but the results are too different.
EDIT
It seems that the image always triggers. Isolation of this image allowed him to transfer the image ONCE before the failure.

I use at least version NumPy 1.8.0 and SciPy 0.13.2.
source
share