<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><SPAN style="RIGHT: auto">
<DIV style="RIGHT: auto"><SPAN style="RIGHT: auto">One option could be to transform the (alpha,delta) with the projection law described here, pp5-6</SPAN></DIV>
<DIV><SPAN></SPAN><SPAN><A href="http://lanl.arxiv.org/pdf/astro-ph/9907229v1.pdf" rel=nofollow target=_blank><FONT color=#800080>http://lanl.arxiv.org/pdf/astro-ph/9907229v1.pdf</FONT></A></SPAN></DIV>
<DIV style="RIGHT: auto"></SPAN><SPAN style="RIGHT: auto">It is shape-preserving, and I understand size distorsions are small even for large fields.</SPAN></DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV style="RIGHT: auto" id=yiv2017543789>
<DIV style="RIGHT: auto">
<DIV style="BACKGROUND-COLOR: #fff; FONT-FAMILY: times new roman, new york, times, serif; COLOR: #000; FONT-SIZE: 12pt">
<DIV style="RIGHT: auto">Jerome</DIV>
<DIV style="RIGHT: auto"><BR style="RIGHT: auto">PS: my apologies Thomas, I sent the email too fast to you but not to the list.</DIV>
<DIV style="RIGHT: auto"> <VAR id=yui-ie-cursor></VAR></DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV style="RIGHT: auto" dir=ltr><FONT size=2 face=Arial>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=yiv2017543789hr></DIV><B><SPAN style="FONT-WEIGHT: bold">De :</SPAN></B> Thomas Robitaille <thomas.robitaille@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">À :</SPAN></B> Sergio Pascual <sergiopr@fis.ucm.es> <BR><B><SPAN style="FONT-WEIGHT: bold">Cc :</SPAN></B> astropy mailing list <astropy@scipy.org> <BR><B><SPAN style="FONT-WEIGHT: bold">Envoyé le :</SPAN></B> Vendredi 11 mai 2012 12h04<BR><B><SPAN style="FONT-WEIGHT: bold">Objet :</SPAN></B> Re: [AstroPy] Cross matching two source lists<BR></FONT></DIV><BR>Hi Sergio,<BR><BR>Thanks for your reply! So it looks like your algorithm only works for<BR>e.g pixel or arcsec coordinates, not e.g.
 longitude/latitude or<BR>ra/dec, correct? (since for spherical coordinates, even for a small<BR>field of view, the spherical angular distance is not the same as the<BR>euclidean distance, i.e. 1 second of RA is not 15 arcseconds except at<BR>the equator).<BR><BR>For a small field of view, one could do a KDTree using (RA * cos(Dec),<BR>Dec), but I'm interested in finding an algorithm that works for large<BR>areas of sky.<BR><BR>Cheers,<BR>Tom<BR><BR>On 11 May 2012 11:10, Sergio Pascual <<A href="mailto:sergiopr@fis.ucm.es" rel=nofollow target=_blank ymailto="mailto:sergiopr@fis.ucm.es">sergiopr@fis.ucm.es</A>> wrote:<BR>> Well, I don't know if it's exactly what you are looking for, but,<BR>> after some discussion in this list I created a package that<BR>> implementsthe Groth algorithm for catalogue matching:<BR>><BR>> A Pattern-Matching Algorithm for Two-Dimensional Coordinate Lists<BR>> Eduard J. Groth 1986 AJ 19, 5<BR>> <A
 href="http://adsabs.harvard.edu/abs/1986AJ.....91.1244G" rel=nofollow target=_blank>http://adsabs.harvard.edu/abs/1986AJ.....91.1244G</A><BR>><BR>> The code is here: <A href="https://bitbucket.org/sergiopr/gmatch" rel=nofollow target=_blank>https://bitbucket.org/sergiopr/gmatch</A><BR>><BR>> Regards<BR>><BR>> 2012/5/11 Thomas Robitaille <<A href="mailto:thomas.robitaille@gmail.com" rel=nofollow target=_blank ymailto="mailto:thomas.robitaille@gmail.com">thomas.robitaille@gmail.com</A>>:<BR>>> Hi everyone,<BR>>><BR>>> I am looking for a Python package that can do arbitrary and efficient<BR>>> cross-matching of source lists, i.e. some kind of kd-tree that uses<BR>>> spherical rather than euclidean distances. Is anyone aware of such a<BR>>> package?<BR>>><BR>>> Thanks,<BR>>> Tom<BR>>> _______________________________________________<BR>>> AstroPy mailing
 list<BR>>> <A href="mailto:AstroPy@scipy.org" rel=nofollow target=_blank ymailto="mailto:AstroPy@scipy.org">AstroPy@scipy.org</A><BR>>> <A href="http://mail.scipy.org/mailman/listinfo/astropy" rel=nofollow target=_blank>http://mail.scipy.org/mailman/listinfo/astropy</A><BR>><BR>><BR>><BR>> --<BR>> Sergio Pascual     <A href="http://guaix.fis.ucm.es/~spr" rel=nofollow target=_blank>http://guaix.fis.ucm.es/~spr</A>    +34 91 394 5018<BR>> gpg fingerprint: 5203 B42D 86A0 5649 410A F4AC A35F D465 F263 BCCC<BR>> Departamento de Astrofísica -- Universidad Complutense de Madrid (Spain)<BR>_______________________________________________<BR>AstroPy mailing list<BR><A href="mailto:AstroPy@scipy.org" rel=nofollow target=_blank ymailto="mailto:AstroPy@scipy.org">AstroPy@scipy.org</A><BR><A href="http://mail.scipy.org/mailman/listinfo/astropy" rel=nofollow
 target=_blank>http://mail.scipy.org/mailman/listinfo/astropy</A><BR><BR><BR></DIV></DIV></DIV></DIV></DIV><BR><BR></DIV></DIV></div></body></html>