[SciPy-user] Linear interpolation with delaunay triangulation

Robert Kern robert.kern@gmail....
Thu Apr 5 11:59:10 CDT 2007


paul cristini wrote:
> Hello,
> I'm trying to use delaunay package to perform interpolation on
> irregularly spaced data and I was wondering if there was a possibility
> to use the linear interpolator with this package. I get an error saying
> the object is not callable when replacing nn with linear in the example.

I beg your pardon. I never implemented the __call__ interface for the linear
interpolator or the linear interpolation for "unstructured" query points.
However, the interface for evaluating on a grid is there:

  LinearInterpolator(triangulation, z)[[ystart:ystop:ysteps*1j,
    xstart:xstop:xsteps*1j]

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco


More information about the SciPy-user mailing list