# 2d spline interpolation with periodic boundaries

4 messages
Open this post in threaded view
|

## 2d spline interpolation with periodic boundaries

 Hi there, I want to do 2d interpolation with periodic boundary conditions. Basically, I have data on a global (as in Earth) rectangular (as in degrees latitude/longitude) grid, and I'd like to interpolate to arbitrary points on the Earth's surface. So I need periodic boundary conditions in the zonal direction. Now, I'd like to look into ``scipy.interpolate.interp2d`` and ``scipy.interpolate.RectBivariateSpline``. Now my question is: Is it enough to give an Western boundary at 360° in addition to the Eastern values at 0° to really give me period boundary conditions? Another question is: How does RectBivariateSpline work? There's not much info in the docs as to what the function actually does, math-wise. Any help is greatly appreciated :) Cheers, Andreas. _______________________________________________ SciPy-User mailing list [hidden email] http://mail.scipy.org/mailman/listinfo/scipy-user
Open this post in threaded view
|

## Re: 2d spline interpolation with periodic boundaries

 On Tue, 30 Aug 2011 11:29:34 +0200 [hidden email] wrote: > Another question is: How does RectBivariateSpline work? There's not much > info in the docs as to what the function actually does, math-wise. > > Any help is greatly appreciated :) Hi, it is a wrapper for "FITPACK" from Dierckx http://www.netlib.org/dierckx/Have a look at Fitpack's documentation to understand how it works (control points have to be ordered and other oddities  ...) Cheers -- ESRF <[hidden email]> _______________________________________________ SciPy-User mailing list [hidden email] http://mail.scipy.org/mailman/listinfo/scipy-user