How Do You Calculate Angular Separation of Stars Using Different Coordinates?

Click For Summary
The discussion focuses on calculating the angular separation of stars using different coordinate systems, specifically Right Ascension (RA) and Declination (DEC) versus Hour Angle (HA) and Declination, as well as Altitude (ALT) and Azimuth (AZ). It confirms that HA can be substituted for RA in the angular separation formula, as both represent angles in a spherical coordinate system. The participants agree that using ALT and AZ should yield the same angular separation results as RA and DEC for the same stars. Additionally, it is noted that the angular distance calculated using ALT and AZ may change over time due to the stars' apparent motion. The discussion concludes with a successful application of the same formula across both coordinate systems, yielding similar results.
TheSource007
Messages
14
Reaction score
0
Hi all.
I have been looking for a formula that gives me the angular separation of two stars.
So far I just found this one :http://www.skythisweek.info/angsep.pdf
but it uses the RA and DEC of the 2 stars, and I need to use the hour angle and DEC. Is it the same thing? Do I just replace HA by RA?

Also I need the equation that gives me the angular separation given the altitude and azimuth of two stars. Can I use the same equation by replacing RA by azimuth and so on?

My goals is to see if the angular distance between two stars given the RA, DEC is different from the angular distance given the ALT, AZ. I think it should be the same but I want to prove it. Also I want to know how that distance (given the ALT, AZ) changes over time. Does it stay the same or does it change?
I would appreciate answers but I really need the equations for a computer code.
Thank you
 
Astronomy news on Phys.org
HA is Hour Angle. RA is Right Ascension. LMST is the Local Mean Sidereal Time. d is the time in days since Jan 1,2000.

HA = LMST - RA

where LMST = 24*( 18.697374558 + 24.0657098244191 * d - longitude / 15)
and d = (Julian Date - 2451545)
 
Yes, you can use any pair of spherical coordinates in place of right ascension and declination, as long as the alpha coordinate in the equation you cite is the angle measured in the reference plane (equator) of the coordinate system and the delta coordinate is the angle measured from the reference plane and up, that is, delta is an elevation angle. As you can see, the alpha coordinates do only appear as an difference in angle and in addition in a way that makes the sign of the difference irrelevant, so the two alphas can be replaced by the angle subtended in the reference plane by the two objects.

You should very much end up with the same angular separation when you apply right ascension and declination as when you apply azimuth and elevation for the same two stars.

You can see a bit more about formulas for angular separation on [1]. Depending on what language you are using, it should be fairly straight forward to turn this into code. Note the comment on the wiki-page regarding the benefit of using the atan2 function to calculate inverse tangent [2].


[1] http://en.wikipedia.org/wiki/Great-circle_distance
[2] http://en.wikipedia.org/wiki/Atan2
 
Last edited:
Thanks a lot. I used the same formula for both coordinate systems and I got approximately the same result.
 
UC Berkely, December 16, 2025 https://news.berkeley.edu/2025/12/16/whats-powering-these-mysterious-bright-blue-cosmic-flashes-astronomers-find-a-clue/ AT 2024wpp, a luminous fast blue optical transient, or LFBOT, is the bright blue spot at the upper right edge of its host galaxy, which is 1.1 billion light-years from Earth in (or near) a galaxy far, far away. Such objects are very bright (obiously) and very energetic. The article indicates that AT 2024wpp had a peak luminosity of 2-4 x...

Similar threads

Replies
1
Views
3K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 8 ·
Replies
8
Views
3K