Interpolation of velocity Grid [message #56927] |
Tue, 20 November 2007 14:26 |
byrne.david
Messages: 3 Registered: November 2007
|
Junior Member |
|
|
Hi Guys,
I have a quick question about an IDL problem i'm having and I can't
seem to work out a clever way of achieving what I want to do. I was
wondering if you had any ideas for me.
My problem is that I need to interpolate an irregular velocity field
grid to a regular one and for the life of me i can't work out how to
do it.
Ok for example I have two arrays, in one array I have all the global
coordinates of the bases of my vectors and in the other all the global
coordinates tips of my vectors with the origin reference at (0,0).
So lets say base=(2, 30000) array and tip=(2,30000)
Now I want to put these vectors onto a regular grid and lets say the
maximum global coordinate is 3000.
So I need to interpolate these vectors onto a (3000,3000) Grid with
the velocities defined at each point. I guess some kind of
interpolation to fill in flow field between the sampled data is needed
but i'm not sure of how to achieve this.
I guess the best way to visualise the problem is if you think of a
swimming pool with some sort of flow. Now you sample the flow at
irregular points with some kind of imaging technique. Now you need to
regularise that grid of irregularly spaced vectors onto a regular grid
the size of the image that you took. So it needs some kind of
interpolation between data points.
Any pointers would be very much appreciated.
Regards
David
|
|
|