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 
Switch to threaded view of this topic 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
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 ;-).
Re: Find Closest Coincident Measurements In Time And Space Between Two Data Sets [message #62903 is a reply to message #62902] Mon, 13 October 2008 09:02 Go to previous message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
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.


On Mon, 13 Oct 2008 05:14:01 -0700 (PDT), "|Rob|" <r083r7@gmail.com>
wrote:

> I was hoping that somebody could help and apply some magic to this
> problem.
>
> I have two sets of satellite measurement data and for dataset A want
> to find the value in dataset B that are closest to it in time and
> space.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: large matrix operations
Next Topic: color plot in window

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

Current Time: Wed Oct 08 17:09:44 PDT 2025

Total time taken to generate the page: 0.00510 seconds