HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Celestial Coordinate Systems and Their Conversions
  1. 1The horizon system: altitude and azimuth
  2. 2The equatorial system: right ascension, declination and hour angle
  3. 3The astronomical triangle, ecliptic and galactic coordinates
  1. Space Science and Astronomy
  2. /Celestial Coordinate Systems and Their Conversions
  3. /The astronomical triangle, ecliptic and galactic coordinates

Course 1.2·Lesson 3 of 3

The astronomical triangle, ecliptic and galactic coordinates

The pole PPP, the zenith ZZZ and a star XXX

Lesson 3 of 3Show all lessonsHide
Celestial Coordinate Systems and Their Conversions
  1. 1The horizon system: altitude and azimuth
  2. 2The equatorial system: right ascension, declination and hour angle
  3. 3

Try the code and the simulations beside the lesson.

One star, two addresses

A catalogue gives Vega as δ=+38.78∘\delta = +38.78^\circδ=+38.78∘. You stand in London at ϕ=51.5∘\phi = 51.5^\circϕ=51.5∘, and Vega's hour angle is 333 h. Where must you point? To answer, we join the two systems in one triangle.

The astronomical triangle

The astronomical triangle on the celestial sphere for an observer in the northern hemisphere. The horizon is a great circle seen at a slant, with S on the left and N on the right. The north celestial pole P sits above N at an altitude equal to the latitude phi. The zenith Z is straight above the observer. A star X lies to the west of the meridian. The three corners P, Z and X are joined by great-circle arcs. The arc PZ is labelled 90 degrees minus phi, the arc PX is labelled 90 degrees minus delta, and the arc ZX is labelled 90 degrees minus a, the zenith distance. The angle at P is labelled H, the hour angle, and the angle at Z is labelled 360 degrees minus A, where A is the azimuth from north through east.

Take the visible celestial pole PPP, the zenith ZZZ and the star XXX. For an observer in the north:

  • PZ=90∘−ϕPZ = 90^\circ - \phiPZ=90∘−ϕ, because the pole stands at altitude ϕ\phiϕ;
  • PX=90∘−δPX = 90^\circ - \deltaPX=90∘−δ, the polar distance of the star;
  • ZX=90∘−a=zZX = 90^\circ - a = zZX=90∘−a=z, the zenith distance;
  • the angle at PPP is the hour angle HHH;
  • the angle at ZZZ is the azimuth AAA for a star east of the meridian, and 360∘−A360^\circ - A360∘−A for a star west of it.

The cosine rule for the side ZXZXZX gives the first formula:

sin⁡a=sin⁡ϕsin⁡δ+cos⁡ϕcos⁡δcos⁡H\displaystyle \sin a = \sin\phi\sin\delta + \cos\phi\cos\delta\cos Hsina=sinϕsinδ+cosϕcosδcosH

The sine rule, with care for the quadrant, gives the azimuth:

cos⁡asin⁡A=−cos⁡δsin⁡H\displaystyle \cos a\sin A = -\cos\delta\sin HcosasinA=−cosδsinH
cos⁡acos⁡A=cos⁡ϕsin⁡δ\displaystyle \cos a\cos A = \cos\phi\sin\deltacosacosA=cosϕsinδ
−sin⁡ϕcos⁡δcos⁡H\displaystyle \qquad - \sin\phi\cos\delta\cos H−sinϕcosδcosH

Use both lines and the two-argument inverse tangent, so that AAA lands in the right quadrant. The same triangle read the other way gives the return journey:

sin⁡δ=sin⁡ϕsin⁡a+cos⁡ϕcos⁡acos⁡A\displaystyle \sin\delta = \sin\phi\sin a + \cos\phi\cos a\cos Asinδ=sinϕsina+cosϕcosacosA
cos⁡δsin⁡H=−cos⁡asin⁡A\displaystyle \cos\delta\sin H = -\cos a\sin AcosδsinH=−cosasinA

The formulas hold in the southern hemisphere too, with ϕ\phiϕ negative. The angle at XXX is the parallactic angle, used to set a spectrograph slit; we leave it aside.

Worked example: Vega from London

ϕ=51.5∘\phi = 51.5^\circϕ=51.5∘, δ=38.78∘\delta = 38.78^\circδ=38.78∘, H=3 h=45∘H = 3\ \text{h} = 45^\circH=3 h=45∘.

  1. Altitude. sin⁡a=sin⁡51.5∘sin⁡38.78∘+cos⁡51.5∘cos⁡38.78∘cos⁡45∘=0.4902+0.3431=0.8333\sin a = \sin 51.5^\circ\sin 38.78^\circ + \cos 51.5^\circ\cos 38.78^\circ\cos 45^\circ = 0.4902 + 0.3431 = 0.8333sina=sin51.5∘sin38.78∘+cos51.5∘cos38.78∘cos45∘=0.4902+0.3431=0.8333. So a=56.44∘a = 56.44^\circa=56.44∘.
  2. Azimuth. cos⁡asin⁡A=−cos⁡38.78∘sin⁡45∘=−0.5512\cos a\sin A = -\cos 38.78^\circ\sin 45^\circ = -0.5512cosasinA=−cos38.78∘sin45∘=−0.5512 and cos⁡acos⁡A=−0.0415\cos a\cos A = -0.0415cosacosA=−0.0415. Both are negative, so AAA lies between 180∘180^\circ180∘ and 270∘270^\circ270∘: A=265.7∘A = 265.7^\circA=265.7∘, just south of west.
  3. Check by the return formula. sin⁡δ=sin⁡51.5∘sin⁡56.44∘+cos⁡51.5∘cos⁡56.44∘cos⁡265.7∘\sin\delta = \sin 51.5^\circ\sin 56.44^\circ + \cos 51.5^\circ\cos 56.44^\circ\cos 265.7^\circsinδ=sin51.5∘sin56.44∘+cos51.5∘cos56.44∘cos265.7∘ gives δ=38.78∘\delta = 38.78^\circδ=38.78∘ again.

The ecliptic system

The ecliptic is the Sun's yearly path on the sky, the plane of the Earth's orbit. It is tilted to the celestial equator by the obliquity ε=23.44∘\varepsilon = 23.44^\circε=23.44∘, and the two cross at the equinoxes. A star has an ecliptic latitude β\betaβ, from the ecliptic, and an ecliptic longitude λ\lambdaλ, eastwards from ♈. The planets and the Moon always stay close to β=0\beta = 0β=0, so this system suits the Solar System. The conversion uses a triangle with the two poles and the star:

sin⁡β=sin⁡δcos⁡ε\displaystyle \sin\beta = \sin\delta\cos\varepsilonsinβ=sinδcosε
−cos⁡δsin⁡εsin⁡α\displaystyle \qquad - \cos\delta\sin\varepsilon\sin\alpha−cosδsinεsinα

The Sun has β=0\beta = 0β=0. A right spherical triangle then gives its declination and right ascension from its longitude:

sin⁡δ⊙=sin⁡εsin⁡λ⊙\displaystyle \sin\delta_\odot = \sin\varepsilon\sin\lambda_\odotsinδ⊙​=sinεsinλ⊙​
tan⁡α⊙=cos⁡εtan⁡λ⊙\displaystyle \tan\alpha_\odot = \cos\varepsilon\tan\lambda_\odottanα⊙​=cosεtanλ⊙​

At the June solstice, λ⊙=90∘\lambda_\odot = 90^\circλ⊙​=90∘, so δ⊙=+23.44∘\delta_\odot = +23.44^\circδ⊙​=+23.44∘ and α⊙=6\alpha_\odot = 6α⊙​=6 h.

The galactic system, in outline

The Milky Way is a flat disc, so its own plane makes a natural equator. The galactic latitude bbb is measured from the plane of the Galaxy, and the galactic longitude lll along it, from the direction of the galactic centre in Sagittarius. The north galactic pole lies at α=12\alpha = 12α=12 h 51.451.451.4 min, δ=+27.13∘\delta = +27.13^\circδ=+27.13∘. The galactic latitude of any star then follows from the cosine rule:

sin⁡b=sin⁡δsin⁡δG\displaystyle \sin b = \sin\delta\sin\delta_Gsinb=sinδsinδG​
+cos⁡δcos⁡δGcos⁡(α−αG)\displaystyle \qquad + \cos\delta\cos\delta_G\cos(\alpha - \alpha_G)+cosδcosδG​cos(α−αG​)

where (αG,δG)(\alpha_G, \delta_G)(αG​,δG​) is the north galactic pole. The galactic centre lies at δ=−28.94∘\delta = -28.94^\circδ=−28.94∘, so it climbs high only for observers in the south.

Set ϕ=51.5∘\phi = 51.5^\circϕ=51.5∘ and δ=60∘\delta = 60^\circδ=60∘. Does the curve ever go below the horizon? Now set δ=−45∘\delta = -45^\circδ=−45∘. For how many hours is the star above the horizon?

Practise with new numbers

Try it in Python

The program changes Vega's equatorial coordinates into altitude and azimuth for London, and then changes them back, to show that nothing is lost.

Predict first. Will the return trip give back exactly 38.78∘38.78^\circ38.78∘ and 333 h? Then run it. Check with Show the answer.

1. Change the latitude from 51.5 to -33.9, like Sydney. Is Vega above the horizon at H=3H = 3H=3 h?

2. Change the hour angle from 3 to -3. How do the azimuths compare?

Common mistakes

  • Taking the azimuth from one inverse sine or cosine. Use both lines and the two-argument inverse tangent to get the quadrant.
  • Forgetting to turn HHH into degrees. Multiply hours by 151515.
  • Mixing the obliquity with the latitude. ε=23.44∘\varepsilon = 23.44^\circε=23.44∘ is fixed; ϕ\phiϕ is yours.
  • Thinking the planets keep β=0\beta = 0β=0 exactly. Only the Sun does; the planets and the Moon wander a few degrees.

Remember these

  • Triangle PZXPZXPZX: sides 90∘−ϕ90^\circ - \phi90∘−ϕ, 90∘−δ90^\circ - \delta90∘−δ, 90∘−a90^\circ - a90∘−a; angle HHH at PPP.
  • sin⁡a=sin⁡ϕsin⁡δ+cos⁡ϕcos⁡δcos⁡H\sin a = \sin\phi\sin\delta + \cos\phi\cos\delta\cos Hsina=sinϕsinδ+cosϕcosδcosH.
  • cos⁡asin⁡A=−cos⁡δsin⁡H\cos a\sin A = -\cos\delta\sin HcosasinA=−cosδsinH.
  • Sun: sin⁡δ⊙=sin⁡εsin⁡λ⊙\sin\delta_\odot = \sin\varepsilon\sin\lambda_\odotsinδ⊙​=sinεsinλ⊙​, with ε=23.44∘\varepsilon = 23.44^\circε=23.44∘.
  • Galactic latitude from the north galactic pole at δ=+27.13∘\delta = +27.13^\circδ=+27.13∘.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. A star is on the meridian, south of the zenith. What are its hour angle and azimuth?
  1. From the North Pole of the Earth, what is the altitude of a star of declination +40∘+40^\circ+40∘?
  1. What is the Sun's declination at the September equinox?
  1. What is the ecliptic latitude of the north celestial pole?

References

  • J. Meeus, Astronomical Algorithms (2nd edition, Willmann-Bell), Chapter 13, Transformation of Coordinates.
  • A. E. Roy and D. Clarke, Astronomy: Principles and Practice (4th edition, Institute of Physics), the chapter on the celestial sphere and coordinate systems.

Enroll free in Celestial Coordinate Systems and Their Conversions

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (4)

Sirius, the brightest star of the night sky, has declination -16.72°…Hard · High School (11–12) · by StemPy Lab
A navigator on a ship at latitude 40.0° S takes a sight of a bright star through a gap in the…Advanced · High School (11–12) · by StemPy Lab
The obliquity of the ecliptic is ε = 23.44°…Advanced · High School (11–12) · by StemPy Lab
That was the last lessonBack to the course: take the test
← Celestial Coordinate Systems and Their Conversions
← The equatorial system: right ascension, declination and hour angleNext →

Discussion (0)

Log in to join the discussion.

Loading…

make the astronomical triangle, with sides
90∘−ϕ90^\circ - \phi90∘−ϕ
,
90∘−δ90^\circ - \delta90∘−δ
and
90∘−a90^\circ - a90∘−a
and the hour angle
HHH
at
PPP
. Its cosine and sine rules change equatorial coordinates into horizon ones and back. The ecliptic and galactic systems are built the same way on other great circles.
about 30 min1 simulation2 practice questions1 Python program5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

The astronomical triangle, ecliptic and galactic coordinates
The galactic system uses the plane of the Milky Way as its equator…Advanced · High School (11–12) · by StemPy Lab

Python Labs (1)

From the equator to the horizon in codePython Lab · by StemPy Lab

Question Sets (1)

Celestial Coordinates: Think It Through10 questions · by StemPy Lab

Notes (1)

Celestial Coordinate Systems and Their Conversions: Quick RevisionNote · by StemPy Lab