GRIDDATA - 3D mode [message #80664] |
Wed, 27 June 2012 01:38 |
antar3s86
Messages: 8 Registered: June 2012
|
Junior Member |
|
|
Hey
I have tried to get a specific result from griddata but I just can't figure it out...
First of all I want to do nearest neighbor search in a cartesian 3D space (so no sphere!). and instead of actually returning the function value I would like to have the nearest neighbor grid values.
So in 2d this would be something like
TRIANGULATE, grid1, grid2, c
fnn = GRIDDATA(grid1,grid2,f,XOUT=x,YOUT=y, /NEAREST_N, TRIANGLES=c)
where then fnn is the value of f at the nearest neighbor of (x/y) in the grid (grid1,grid2). Is it here possible to actually return the XOUT and YOUT values, so the nearest neighbor, and is this also possible if I have a third coordinate (grid3 and z)...?
I hope you can help
cheers
|
|
|