Re: Find Closest Coincident Measurements In Time And Space Between Two Data Sets [message #62902] |
Mon, 13 October 2008 09:17 |
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  |
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.
|
|
|