resampling on irregular grid [message #80394] |
Wed, 06 June 2012 19:25 |
Thibault Garel
Messages: 55 Registered: October 2009
|
Member |
|
|
Hi,
I would like to resample an array A, from an irregular grid to another
one .
The 1st column A[0,*] (= the x-axis) is irregularly binned, and the
2nd column A[1,*] contains the corresponding y-axis values.
I just want to resample the 2nd column A[1,*] according to another x-
axis irregular grid, with P elements instead of N.
This operation doesn't look quite complicated to perform, but I was
wondering if there exists an optimized IDL function doing this.
(especially because I have to deal with large arrays and I want the
operation to be efficient...). REBIN and CONGRID seem to work only on
regular arrays...
Any idea?
Thanks!
|
|
|