[Numpy-discussion] sampling arrays

Zachary Pincus zachary.pincus at yale.edu
Tue Jun 18 08:40:10 EDT 2013


> Thank you, 
>                  No if the location ( space time or depth) of choice is not available then the function I was looking for should give an interpolated value at the choice.
> with best regards,
> Sudheer

scipy.ndimage.map_coordinates may be exactly what you want.


> ----- Original Message -----
> 
>> From: Henry Gomersall <heng at cantab.net>
>> To: Discussion of Numerical Python <numpy-discussion at scipy.org>
>> Cc: 
>> Sent: Sunday, 16 June 2013 2:49 PM
>> Subject: Re: [Numpy-discussion] sampling arrays
>> 
>> On Sun, 2013-06-16 at 14:48 +0800, Sudheer Joseph wrote:
>>> Is it possible to sample a 4D array of numpy at given dimensions with
>>> out writing loops? ie a smart python way?
>> 
>> It's not clear how what you want to do is different from simply indexing
>> the array...?
>> 
>> Henry
>> 
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion at scipy.org
>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>> 
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion




More information about the NumPy-Discussion mailing list