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

Home » Public Forums » archive » Nearest neighbor search in position vector array and curl of vector field
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Nearest neighbor search in position vector array and curl of vector field [message #88642 is a reply to message #88628] Thu, 22 May 2014 17:04 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Wednesday, May 21, 2014 3:46:38 AM UTC-4, p.j.s...@lboro.ac.uk wrote:
> The position vectors are obviously not on a uniform grid and neither are the velocity vectors. Essentially what I wanted to do was find the curl of the vector field, so it might be that there an easier way of trying to calculate this?

Can you resample onto a uniform grid. That would obviously make things *much* easier, and amenable to vectorizing in IDL.

Even if you can't resample your data, you might consider using a 2 step search. First use a regular grid to narrow down the part of your sample that is near to your particle point. Then use standard cartesian to search the remaining samples. Even if you do this, I don't think you will be able to vectorize.

Craig
[Message index]
 
Read Message
Read Message
Previous Topic: IDLWAVE history savefile
Next Topic: Re: IDL help in alternate browser

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

Current Time: Sat Nov 29 04:30:59 PST 2025

Total time taken to generate the page: 0.48022 seconds