comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » GRIDDATA - 3D mode
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
GRIDDATA - 3D mode [message #80664] Wed, 27 June 2012 01:38
antar3s86 is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: isurface
Next Topic: Problem with Parinfo on Craig B. Markwardt's MPFITPEAK

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:47:24 PDT 2025

Total time taken to generate the page: 0.00516 seconds