[SciPy-User] Problem with scipy.interpolate.RectBivariateSpline
Sat Mar 26 06:49:34 CDT 2011
On Mar 22, 2011, at 11:07 AM, Peter Baek wrote:
> I find it strange that scipy.interpolate.RectBivariateSpline cannot
> evaluate a random vector. When i evaluate an ordered vector using e.g.
> linspace it works fine, but when i try a random vector it crashes.
> Please help me find a way to evaluate an unordered vector.
This is a restriction of the underlying implementation. To evaluate an unordered vector use argsort:
i = argsort(yi2)
ii = argsort(i)
where we have used a second argsort to re-order the output of the interpolation routine.
Hope this helps,
More information about the SciPy-User