[SciPy-dev] new function regrid for fitpack2

Stefan van der Walt stefan at sun.ac.za
Wed Oct 11 19:35:06 EDT 2006


On Wed, Oct 11, 2006 at 10:59:37PM +0100, John Travers wrote:
> Of course. But interp2d should be for interpolation only, and I think
> it is OK just to have it only for a rectangular grid. regrid is
> designed specifically for this (though it can also smooth data). The
> interface to surfit (which is bisplprep and SmoothBivariateSpline)
> will still be there for smoothing of scattered data, though it
> shouldn't be used for interpolation.

[...]

> > What do you mean by "or do people need to interpolate scattered data,
> > in which case a different library altogether would be required"?
> > Isn't that functionality currently exposed via the surface fitting
> > algorithm?
> 
> No, the surfit routine can only smooth scattered data, to interpolate
> through scattered data points would require a different library from
> dierckx fitpack. Something like the other netlib fitpack or natgrid
> would be suitable.

OK, I understand what you meant now.  I've applied your patch (btw,
please keep line lengths < 79 chars).  I still need to modify
interp2d, which I will do on Friday, unless you submit a patch before
then.

Cheers
Stéfan




More information about the SciPy-Dev mailing list