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

Home » Public Forums » archive » Re: Find Closest Coincident Measurements In Time And Space Between Two Data Sets
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: Find Closest Coincident Measurements In Time And Space Between Two Data Sets [message #62902] Mon, 13 October 2008 09:17 Go to previous message
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
> I was wondering whether you could convert every data point
> (lat,lon,date,time) in both sets to some integer value, reflecting the
> time and space marging/precision and then use intersection from
> http://www.dfanning.com/tips/set_operations.html
>
> If this would work, this doesn't find the closest point in B for each
> A, but the overlapping points (overlapping margins). But so does your
> code, so I guess that's what you want.

If you can't convert (lat,lon,date,time) to 1 integer, maybe you can
convert it to 4 integers and adapt SetIntersection using hist_nd and
intersect two 4D-integer datasets.

Then again, I'm not sure whether all that fits into memory.

Btw, if you have enough processing going on in one iteration, having a
FOR loop is not too bad. But I know the
garlic-sliver-bullets-lets-kill-the-evil-FOR-loop feeling ;-).
[Message index]
 
Read Message
Read Message
Previous Topic: large matrix operations
Next Topic: color plot in window

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

Current Time: Fri Oct 10 04:03:56 PDT 2025

Total time taken to generate the page: 0.32200 seconds