{"id":730,"date":"2018-07-09T20:12:37","date_gmt":"2018-07-09T20:12:37","guid":{"rendered":"http:\/\/jonvoisey.net\/blog\/?p=730"},"modified":"2023-12-30T13:02:51","modified_gmt":"2023-12-30T19:02:51","slug":"data-converting-alt-az-to-ra-dec-derivation","status":"publish","type":"post","link":"https:\/\/jonvoisey.net\/blog\/2018\/07\/data-converting-alt-az-to-ra-dec-derivation\/","title":{"rendered":"Data: Converting Alt-Az to RA-Dec &#8211; Derivation"},"content":{"rendered":"<p>Last month, <a href=\"https:\/\/jonvoisey.net\/blog\/index.php\/2018\/06\/05\/introduction-to-the-celestial-sphere-astronomical-coordinates\/\">I had a post<\/a> that briefly introduced the two primary coordinate systems for recording the position of objects on the celestial sphere: the Altitude-Azimuth (Alt-Az) and Right Ascension-Declination (RA (\u03b1)-Dec (\u03b4)) systems. There, I noted that Alt-Az is quick and easy to use, but is at the same time nearly useless as objects fixed on the celestial sphere do not have fixed coordinates.<\/p>\n<p>Instead, astronomers<span id='easy-footnote-1-730' class='easy-footnote-margin-adjust'><\/span><span class='easy-footnote'><a href='https:\/\/jonvoisey.net\/blog\/2018\/07\/data-converting-alt-az-to-ra-dec-derivation\/#easy-footnote-bottom-1-730' title='By which I mean modern astronomers. While there&amp;#8217;s no reason that RA-Dec couldn&amp;#8217;t have been used in period, it doesn&amp;#8217;t appear in star catalogs until the $1700$s. Although I haven&amp;#8217;t gotten far enough in my study to confirm it, this implies that astronomers in period probably used the Ecliptic coordinate system which is very similar to RA-Dec except that the primary &amp;#8220;left-right&amp;#8221; axis is the ecliptic instead of the celestial equator. While I may use that system later, for the time being I&amp;#8217;m going to stick with RA-Dec because it allows for more easy comparison with the modern values so I can better understand the capabilities of my quadrant.'><sup>1<\/sup><\/a><\/span> use the RA-Dec system because fixed objects have fixed positions. My modern telescope does allow for this system to be used rather directly because it has an equatorial mount which tilts the telescope to match the plane of the ecliptic instead of the plane of the horizon. Additionally, it is motorized to allow it to turn <em>with<\/em> the sky, thereby retaining its orientation in relation a coordinate system that rotates with the celestial sphere.\u00a0Thus, once it&#8217;s set we&#8217;re good to go.<\/p>\n<p>However, the quadrants Brahe used were neither inclined to the ecliptic nor motorized. Thus, measurements were necessarily taken in the Alt-Az system and would need to be converted to RA-Dec to be useful. Here, we&#8217;ll explore how that conversion works<span id='easy-footnote-2-730' class='easy-footnote-margin-adjust'><\/span><span class='easy-footnote'><a href='https:\/\/jonvoisey.net\/blog\/2018\/07\/data-converting-alt-az-to-ra-dec-derivation\/#easy-footnote-bottom-2-730' title='This method is the one I covered in my ASTR 591 class at KU. I&amp;#8217;m not certain if it&amp;#8217;s one used in period or not.'><sup>2<\/sup><\/a><\/span>.<!--more--><\/p>\n<p>So far in this post, we&#8217;ve only introduced four variables, Alt, Az, RA, Dec. However, for conversion, we&#8217;re going to need several more concepts so let&#8217;s go slowly and introduce them one at a time.<\/p>\n<p>The first one we&#8217;ve already seen. It&#8217;s the Vernal Equinox. It is defined as the intersection of the ecliptic and celestial equator on the date of the <strong>Vernal Equinox<\/strong> and is represented by the symbol \u2648\ufe0e.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec1.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-736\" src=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec1.png?resize=295%2C300&#038;ssl=1\" alt=\"\" width=\"295\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec1.png?resize=295%2C300&amp;ssl=1 295w, https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec1.png?w=614&amp;ssl=1 614w\" sizes=\"auto, (max-width: 295px) 100vw, 295px\" \/><\/a><\/p>\n<p>Next up, the celestial sphere, much like the Earth has poles around which it appears to rotate. These are the\u00a0<strong>North Celestial Pole<\/strong> (NCP) and\u00a0<strong>South Celestial Pole<\/strong> (SCP). For our purposes here, I&#8217;ll just illustrate the NCP.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec2.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-737\" src=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec2.png?resize=281%2C300&#038;ssl=1\" alt=\"\" width=\"281\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec2.png?resize=281%2C300&amp;ssl=1 281w, https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec2.png?w=614&amp;ssl=1 614w\" sizes=\"auto, (max-width: 281px) 100vw, 281px\" \/><\/a><\/p>\n<p>While we won&#8217;t be using these directly, we&#8217;ll be measuring things in relation to them. Specifically, the <strong>Hour Circle<\/strong>. This is defined as the great circle perpendicular to the celestial equator (and therefore going through the North Celestial Pole (NCP)) on which the object lies. The angular distance from the intersection of the Hour Circle and the Vernal Equinox is the definition of the Right Ascension. Adding that to our diagram:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec3.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-735\" src=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec3.png?resize=281%2C300&#038;ssl=1\" alt=\"\" width=\"281\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec3.png?resize=281%2C300&amp;ssl=1 281w, https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec3.png?w=614&amp;ssl=1 614w\" sizes=\"auto, (max-width: 281px) 100vw, 281px\" \/><\/a><\/p>\n<p>Next up, let&#8217;s remember that the observer has a local <strong>meridian<\/strong>, the line from their north point on the horizon, through the zenith, to the south point on their horizon. Since the Earth is constantly spinning beneath the celestial sphere, it will be moving as well. But we can draw it in at an arbitrary point simply to illustrate the point.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec4.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-738\" src=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec4.png?resize=281%2C300&#038;ssl=1\" alt=\"\" width=\"281\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec4.png?resize=281%2C300&amp;ssl=1 281w, https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec4.png?w=614&amp;ssl=1 614w\" sizes=\"auto, (max-width: 281px) 100vw, 281px\" \/><\/a><\/p>\n<p>You may notice I&#8217;ve added another new concept here, the\u00a0<strong>Hour Angle<\/strong> (HA). This is defined as the angular distance, along the celestial equator between the hour circle and the observer&#8217;s meridian. Coincidentally, you&#8217;ll see I marked it in two places in two different ways. One (at the top) is a more direct angle. The other, along the celestial equator, is a side. But since we divide the full circle into 360\u00ba along the great circle as Ptolemy did, their measures are the same.<\/p>\n<p>From there, we&#8217;ll add another new concept simply by adding two we already have together: the\u00a0<strong>Sidereal Time<\/strong> (ST). Loosely speaking, sidereal time is time measured in relation to distant stars which means that it&#8217;s Earth rotating $360\u00ba$<span id='easy-footnote-3-730' class='easy-footnote-margin-adjust'><\/span><span class='easy-footnote'><a href='https:\/\/jonvoisey.net\/blog\/2018\/07\/data-converting-alt-az-to-ra-dec-derivation\/#easy-footnote-bottom-3-730' title='There&amp;#8217;s another kind of time measurement called &lt;a href=&quot;https:\/\/en.wikipedia.org\/wiki\/Solar_time&quot;&gt;Solar Time&lt;\/a&gt; in which time is measured in relation to the Sun. However, since Earth orbits around the Sun, it must rotate a bit beyond 360\u00ba for the Sun to be in the same relative position, such as on the meridian. Thus, a solar day is slightly longer than a sidereal day.'><sup>3<\/sup><\/a><\/span>. However, since our reference point here is the vernal equinox, that&#8217;s going to be our starting point, and our other point will be the intersection of the meridian and celestial equator. I&#8217;ve added that to our diagram:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec5.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-739\" src=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec5.png?resize=281%2C300&#038;ssl=1\" alt=\"\" width=\"281\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec5.png?resize=281%2C300&amp;ssl=1 281w, https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec5.png?w=614&amp;ssl=1 614w\" sizes=\"auto, (max-width: 281px) 100vw, 281px\" \/><\/a><\/p>\n<p>So from this we can easily see that: $ST = \\alpha + HA$.<\/p>\n<p>We&#8217;ve got a good start, but now we&#8217;ll need to shift frames of reference a bit. Thus far, we&#8217;ve been looking at things from outside the celestial sphere, but since we&#8217;re concerned with converting from the Alt-Az system which in measured in relation to the observer&#8217;s horizon, we&#8217;ll need to switch to a view that includes that. So here we go:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec6.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-742\" src=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec6.png?resize=300%2C295&#038;ssl=1\" alt=\"\" width=\"300\" height=\"295\" srcset=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec6.png?resize=300%2C295&amp;ssl=1 300w, https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec6.png?w=671&amp;ssl=1 671w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>At first glance it doesn&#8217;t look like we&#8217;ve changed much, so before moving on, let&#8217;s make sure we know what&#8217;s different. First, I&#8217;ve completely dropped the ecliptic. We only needed it to find the ecliptic to define a few things<span id='easy-footnote-4-730' class='easy-footnote-margin-adjust'><\/span><span class='easy-footnote'><a href='https:\/\/jonvoisey.net\/blog\/2018\/07\/data-converting-alt-az-to-ra-dec-derivation\/#easy-footnote-bottom-4-730' title='Specifically, we needed it to define RA and ST.'><sup>4<\/sup><\/a><\/span>.<\/p>\n<p>The sphere as presented previously has been rotated a bit (counter clockwise as we&#8217;re looking at it) such that the NCP is now off at an angle suitable for an observer in the northern hemisphere<span id='easy-footnote-5-730' class='easy-footnote-margin-adjust'><\/span><span class='easy-footnote'><a href='https:\/\/jonvoisey.net\/blog\/2018\/07\/data-converting-alt-az-to-ra-dec-derivation\/#easy-footnote-bottom-5-730' title='If the NCP was at the Zenith, you would be at the North Pole. If it were on the North horizon, you would be on the equator.'><sup>5<\/sup><\/a><\/span>.<\/p>\n<p>I&#8217;ve also marked the cardinal directions of the side of the sphere facing us (so left off east for clarity).<\/p>\n<p>Next, let&#8217;s add a piece of a great circle that passes through the NCP through the object, and cut it off at the horizon.<a href=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec7.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-743\" src=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec7.png?resize=300%2C295&#038;ssl=1\" alt=\"\" width=\"300\" height=\"295\" srcset=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec7.png?resize=300%2C295&amp;ssl=1 300w, https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec7.png?w=671&amp;ssl=1 671w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>This line is going to help us because our diagram, with that one line, now contains everything we need to visually draw in the definitions for\u00a0<strong>Altitude<\/strong> ($a$) and <strong>Azimuth\u00a0<\/strong>($A$).<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec8.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-745\" src=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec8.png?resize=300%2C295&#038;ssl=1\" alt=\"\" width=\"300\" height=\"295\" srcset=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec8.png?resize=300%2C295&amp;ssl=1 300w, https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec8.png?w=671&amp;ssl=1 671w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Recall that altitude is defined as the angular height above the closest horizon. In planar geometry, the shortest distance between two points is a straight line. But since we&#8217;re in spherical geometry, the shortest distance (the line closest to the horizon) is the great circle arc. Thus, what I&#8217;ve drawn in is the proper altitude.<\/p>\n<p>Similarly, the definition of azimuth is the angular distance along the horizon, starting from north, going through east. Thus in this diagram, it starts at N, goes around the back, and ends back on the front. The dashed line would be $360\u00ba &#8211; A$.<\/p>\n<p>Looking up at the triangle near the top, there&#8217;s a few other things we should add in:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec9.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-746\" src=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec9.png?resize=300%2C290&#038;ssl=1\" alt=\"\" width=\"300\" height=\"290\" srcset=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec9.png?resize=300%2C290&amp;ssl=1 300w, https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec9.png?w=682&amp;ssl=1 682w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Here, we&#8217;ve noted where the hour angle ($HA$) is. And for completeness, note that angle $Z$ is the angle that subtends that $360\u00ba-A$<span id='easy-footnote-6-730' class='easy-footnote-margin-adjust'><\/span><span class='easy-footnote'><a href='https:\/\/jonvoisey.net\/blog\/2018\/07\/data-converting-alt-az-to-ra-dec-derivation\/#easy-footnote-bottom-6-730' title='Because this is on the surface of a sphere, the three angles in that triangle won&amp;#8217;t add up to $180\u00ba$, so we can&amp;#8217;t find the third by subtraction, but it&amp;#8217;s not particularly important anyway.'><sup>6<\/sup><\/a><\/span><\/p>\n<p>Next, we need some sort of understanding of how tilted our NCP is from the zenith.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec10.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-747\" src=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec10.png?resize=300%2C290&#038;ssl=1\" alt=\"\" width=\"300\" height=\"290\" srcset=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec10.png?resize=300%2C290&amp;ssl=1 300w, https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec10.png?w=682&amp;ssl=1 682w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Here we&#8217;ve drawn in $\\phi$ which is the angular distance of the NCP above the horizon. This can be measured fairly accurately by measuring the altitude of the North Star (Polaris) and is also your latitude. In addition we can mark the other segment from $arc \\; NZ$ as $90 &#8211; \\phi$ since the zenith is at a right angle from the horizon.<\/p>\n<p>There&#8217;s still something conspicuously missing. We haven&#8217;t added anything directly from the RA-Dec system. As we noted earlier, we will be determining RA from the HA and ST, so the only one we need now is the Dec ($\\delta$) which is the great circle arc from the object to the celestial equator.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec11.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-750\" src=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec11.png?resize=300%2C290&#038;ssl=1\" alt=\"\" width=\"300\" height=\"290\" srcset=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec11.png?resize=300%2C290&amp;ssl=1 300w, https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec11.png?w=682&amp;ssl=1 682w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>I&#8217;ve also marked in the portion from the NCP to the object as $90\u00ba &#8211; \\delta$ as we&#8217;ll be using that.<\/p>\n<p>Now we&#8217;re done with diagrams and it&#8217;s time to get down to some math. First we&#8217;ll use the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Spherical_law_of_cosines\">spherical law of cosines<\/a>\u00a0and apply it to that little triangle up at the top<span id='easy-footnote-7-730' class='easy-footnote-margin-adjust'><\/span><span class='easy-footnote'><a href='https:\/\/jonvoisey.net\/blog\/2018\/07\/data-converting-alt-az-to-ra-dec-derivation\/#easy-footnote-bottom-7-730' title='The one with corners of the NCP, Zenith, and object.'><sup>7<\/sup><\/a><\/span>.<\/p>\n<p>$$cos(90 &#8211; \\delta) = cos(90 &#8211; \\phi)cos(90-a) + sin(90 &#8211; \\phi)sin(90-a)cos(360 &#8211; A)$$<\/p>\n<p>This simplifies a lot because when $cos(90 &#8211; x) = sin(x)$ and vice versa. Also, $cos(360 &#8211; x) = cos(x)$:<\/p>\n<p>$$sin(\\delta) = sin(\\phi)sin(a) + cos(\\phi)cos(a)cos(A)$$<\/p>\n<p>Taking a good look at our variables here, we happily have everything on the right side. Altitude and azimuth are things we will measure directly, and\u00a0\u03c6 is your latitude. Thus, we can solve for the declination with just those three pieces of information.<\/p>\n<p>Recall we said we&#8217;re going to get the RA by way of the ST and HA. Since as we noted before, ST is something we get off a clock, what we really need next is the HA, which we can get by another application of the spherical law of cosines. Before doing that, let&#8217;s draw in one final piece to the diagram for clarity:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec12.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-751\" src=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec12.png?resize=300%2C290&#038;ssl=1\" alt=\"\" width=\"300\" height=\"290\" srcset=\"https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec12.png?resize=300%2C290&amp;ssl=1 300w, https:\/\/i0.wp.com\/jonvoisey.net\/blog\/wp-content\/uploads\/2018\/07\/altaz-radec12.png?w=682&amp;ssl=1 682w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Here, I&#8217;ve added a definition for one more side to that little triangle at the top. Following the same arc that the altitude is on, the remaining part extending it to the zenith must be $90\u00ba &#8211; a$ since the zenith is $90\u00ba$ from the horizon. So applying another spherical law of cosines, this time with the side being the one between Z and the object we get:<\/p>\n<p>$$cos(90-a) = cos(90 &#8211; \\phi)cos(90 &#8211; \\delta) + sin(90 &#8211; \\phi)sin(90 &#8211; \\delta)cos(HA)$$<\/p>\n<p>Again this simplifies handily:<\/p>\n<p>$$sin(a) = sin(\\phi)sin(\\delta) + cos(\\phi)cos(\\delta)cos(HA)$$<\/p>\n<p>We can then solve this for the variable we&#8217;re after:<\/p>\n<p>$$cos(HA) = \\frac{sin(a) &#8211; sin(\\phi)sin(\\delta)}{cos(\\phi)cos(\\delta)}$$<\/p>\n<p>From there, all we need to do is remove the $cos$ from the hour angle by taking the inverse and we&#8217;ve solved for the hour angle:<\/p>\n<p>$$HA = arccos (\\frac{sin(a) &#8211; sin(\\phi)sin(\\delta)}{cos(\\phi)cos(\\delta)})$$<\/p>\n<p>We can solve our earlier equation for RA as we now have everything we need to plug into it:<\/p>\n<p>$$\\alpha = ST &#8211; HA$$<\/p>\n<p>However, there&#8217;s one more thing to note which is that, as I&#8217;ve drawn it, the object is to the\u00a0<em>west<\/em> of the observer&#8217;s meridian. If you imagine a situation in which the meridian is west of the object, then,<\/p>\n<p>$$\\alpha = ST + HA$$<\/p>\n<p>In the <a href=\"https:\/\/jonvoisey.net\/blog\/2018\/07\/data-converting-alt-az-to-ra-dec-example\/\">next post<\/a>, I&#8217;ll work an example that will hopefully help clarify things.<\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>Last month, I had a post that briefly introduced the two primary coordinate systems for recording the position of objects on the celestial sphere: the Altitude-Azimuth (Alt-Az) and Right Ascension-Declination (RA (\u03b1)-Dec (\u03b4)) systems. There, I noted that Alt-Az is quick and easy to use, but is at the same time nearly useless as objects &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/jonvoisey.net\/blog\/2018\/07\/data-converting-alt-az-to-ra-dec-derivation\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Data: Converting Alt-Az to RA-Dec &#8211; Derivation&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[33],"tags":[36,37,35,26],"class_list":["post-730","post","type-post","status-publish","format-standard","hentry","category-data","tag-celestial-equator","tag-celestial-sphere","tag-ecliptic","tag-mathematics"],"acf":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9ZpvC-bM","_links":{"self":[{"href":"https:\/\/jonvoisey.net\/blog\/wp-json\/wp\/v2\/posts\/730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jonvoisey.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jonvoisey.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jonvoisey.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jonvoisey.net\/blog\/wp-json\/wp\/v2\/comments?post=730"}],"version-history":[{"count":15,"href":"https:\/\/jonvoisey.net\/blog\/wp-json\/wp\/v2\/posts\/730\/revisions"}],"predecessor-version":[{"id":4427,"href":"https:\/\/jonvoisey.net\/blog\/wp-json\/wp\/v2\/posts\/730\/revisions\/4427"}],"wp:attachment":[{"href":"https:\/\/jonvoisey.net\/blog\/wp-json\/wp\/v2\/media?parent=730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jonvoisey.net\/blog\/wp-json\/wp\/v2\/categories?post=730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jonvoisey.net\/blog\/wp-json\/wp\/v2\/tags?post=730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}