[SciPy-dev] new function regrid for fitpack2
jtravs at gmail.com
Thu Oct 12 07:42:44 CDT 2006
Thanks! Sorry for the long lines, I'll be stricter on the format next
time. I can send a patch for interp2d this evening (London time) if
On 12/10/06, Stefan van der Walt <stefan at sun.ac.za> wrote:
> 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
> Scipy-dev mailing list
> Scipy-dev at scipy.org
My mobile (which I rarely answer): (+44) (0) 7739 105209
If you want to see what I do: www.femto.ph.ic.ac.uk
More information about the Scipy-dev