[SciPy-dev] new function regrid for fitpack2

John Travers jtravs at gmail.com
Wed Oct 11 16:59:37 CDT 2006

Hi Stefan, thanks for replying. I've answered your questions below...

On 11/10/06, Stefan van der Walt <stefan at sun.ac.za> wrote:
> Hi John
>> ...
> As you say, we should probably use the function purpose written for a
> rectangular grid in interp2d.  However, I wouldn't like to lose the
> ability to smooth scattered data.

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.

Best regards,

More information about the Scipy-dev mailing list