[Scipy-tickets] [SciPy] #1406: griddata needs sorted data

SciPy Trac scipy-tickets@scipy....
Thu Aug 18 10:02:39 CDT 2011


#1406: griddata needs sorted data
-------------------------------+--------------------------------------------
 Reporter:  wkerzendorf        |       Owner:  somebody
     Type:  enhancement        |      Status:  new     
 Priority:  normal             |   Milestone:  0.9.1   
Component:  scipy.interpolate  |     Version:  0.9.0   
 Keywords:  griddata           |  
-------------------------------+--------------------------------------------

Comment(by rgommers):

 Can it be fixed by simple doing:
 {{{
 if points.ndim == 1:
     idx = np.argsort(points)
     points = points[idx]
     values = values[idx]
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1406#comment:3>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list