[SciPy-user] Bilinear Interpolation

Stefan van der Walt stefan at sun.ac.za
Wed Sep 27 10:07:35 CDT 2006

Hi Ryan

On Wed, Sep 27, 2006 at 08:09:18AM -0500, Ryan May wrote:
> > That's what I kinda thought, but using 'linear' for interp2d didn't give 
> > me the same answer as when I performed the calculation manually.  I'll 
> > have to see what I can find on this...
> Ok, if I select the 4 points surrounding the location of interest, 
> interp2d gives me the value I get with manually calculating a bilinear 
> interpolation.  However if I use the whole field (or even 9 points 
> instead of 4), I get a different answer.  I _know_ I wouldn't expect 
> this for bilinear interpolation, and it would seem to imply that even 
> _linear_ B-splines uses the information from additional points.  Am I 
> missing something here, or are the methods just not truly
> equivalent?

Please send some code so we can see what you are doing.  Without that,
we are just discussing things in the air.


More information about the SciPy-user mailing list