[Numpy-discussion] Grid indexing

Wolfgang Kerzendorf wkerzendorf at googlemail.com
Sat Feb 26 03:36:48 EST 2011


Hello,

I have a n dimensional grid. The grids axes are linear but not 
intergers. Let's say I want the value in gridcell [3.2,-5.6,0.01]. Is 
there an easy way to transform the index? Do I have to write my own 
class to accomplish this. Is there an easy way in numpy to accomplish 
this. Can I give functions to transform the index somehow to the numpy 
array?


Cheers
    Wolfgang



More information about the NumPy-Discussion mailing list