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

Home » Public Forums » archive » Distance calculation for lots of stars
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: Distance calculation for lots of stars [message #91424 is a reply to message #91423] Mon, 13 July 2015 11:49 Go to previous messageGo to previous message
matthewportman93 is currently offline  matthewportman93
Messages: 1
Registered: July 2015
Junior Member
On Monday, July 13, 2015 at 2:36:32 PM UTC-4, wlandsman wrote:
> A couple of comments:
>
> You are not using the correct formula for the distance on a sphere. (Near the pole, stars can have very different right ascensions but be separated by less than an arc second.)
>
> If stars are separated by more than 1 arc second in declination, then they must be more than 1 arc second apart. So a first step is to just search in declination, and you only need the full distance computation when the declination differs by less than 1 arc second.
>
> Jeremy Bailin's program matchall_sph.pro uses many such tricks to speed up the processing. It is available in his tar file jib-1.2.tgz available from
> http://www.simulated-galaxies.ua.edu/jbiu/ --Wayne
>

Thanks Wayne, I'm looking at matchall now.

I apologize, I didn't note that I have already taken into account the position on the sphere. The code I posted is a gross over generalization of the bigger picture!

I've run into some issues with very close stars but the reduction comes later anyway. I'll implement the declination change and check that against matchall.

Matthew
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDLWAVE and &$ blocks
Next Topic: Easy question on for loops and if statements

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

Current Time: Wed Oct 08 15:13:18 PDT 2025

Total time taken to generate the page: 0.00377 seconds