[SciPy-User] Problems with 2D interpolation of data on polar grid
Mon Aug 30 11:11:31 CDT 2010
Thanks everyone for all your replies, especially to Denis for those
detailed notes on stackoverflow.
I've managed to get it to work well with
interpolate.RectBivariateSpline (as suggested above) on a rectangular
(r, theta) grid, with quintic splines in theta and cubic in r, and no
smoothing (s=0). I don't know why that particular combination works so
well (quintic in both directions requires some smoothing, and the
amount needed depends on the dataset, not just the grid, which is
really bad for what I'm trying to do), I think I was being careful
enough to always convert to Cartesian coordinates (both X, Y and Xnew,
Ynew) etc, but the routines just seem to do a much better job on
If I run into problems with this later I'll try griddata() as described.
On 30 August 2010 10:48, denis <firstname.lastname@example.org> wrote:
> it looks as though there's a mixup here between Cartesion X,Y and
> polar Xnew,Ynew.
> griddata() will catch this to some extent with masked array Znew
> but the the Fitpack routines will extrapolate *without warning*.
> See the too-long notes under
> -- denis
> SciPy-User mailing list
More information about the SciPy-User