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

Home » Public Forums » archive » match_2d
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: match_2d [message #66227 is a reply to message #66220] Tue, 28 April 2009 19:44 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Apr 27, 3:06 pm, JDS <jdtsmith.nos...@yahoo.com> wrote:
>> I'm pretty sure there's a HIST_ND-based algorithm of doing this
>> similar toMATCH_2Dbut taking spherical trig into account, but I
>> don't have the patience to figure it out.
>
> That would be challenging for the whole sphere, since histogram can
> only evaluate monotonic coordinate fields.  You can always first remap
> your coordinates using some projection which puts the ill-behaved
> parts (nominally, the poles) far away, and preserves distance
> locally.  For example, if you have a small field (a degree or so) near
> the pole, this would be a nice way of solving the converging longitude
> lines issues.  But generally?  Sounds tough.
>
> JD

How about if it was done in 3D? Instead of 2D angular coordinates, use
the 3D coordinates of the relevant points on the surface of a unit
sphere, and then use HIST_ND to determine which 3D bin the points are
in and build the algorithm analogously to MATCH_2D?

The main problem I see is that, for small bin sizes (ie. small desired
angular separations), there's a lot of wasted memory storing the
histogram in locations that don't lie on the surface of the sphere and
therefore are necessarily zero. But maybe there's a way of enumerating
the bins that do contain part of the surface - if so, then you could
use that enumeration to map the 3D positions into a simple number that
you can run HISTOGRAM on.

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to detect ellipse intersection
Next Topic: Re: How to detect ellipse intersection

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

Current Time: Thu Oct 09 13:12:47 PDT 2025

Total time taken to generate the page: 0.91520 seconds