DEV Community

Cover image for Astronomical computing – Ep 2 - Angles
Rémy Hannequin
Rémy Hannequin

Posted on • Edited on

Astronomical computing – Ep 2 - Angles

Angles are one of the most important concepts in astronomy. Celestial objects are visible, from our point of view living on Earth, as laying on an imaginary sphere. This is the celestial sphere[1], which by its name, states that objects' position on it can be described with angles.

Celestial sphere

source: lumenlearning.com

There are many astronomical coordinate systems but we will focus on the two most used.

Horizontal coordinate system

The horizontal coordinate system[2], also know as altitude-azimuth system, is quite easy to understand. It is basically describing the object's position as up-down and left-right.

As an observer, watching the celestial hemisphere from its center (as the whole sphere is not visible due to the ground), a coordinate can be described with two elements:

  • altitude, the angle between the horizon and the object
  • azimuth, the angle between the north and the object

A few important things must now be explained.

The horizon is actually called the celestial horizon, as it differs from the common horizon that includes the Earth topography. It is a horizontal plane on which the observer is standing.

The north is also called the true north, which is the direction towards the Earth's geographic North Pole.

These angles are described in arc degrees. These degrees are the one we know from school where 360° is a complete circle.

Equatorial coordinate system

More difficult to apprehend, but extensively used in astronomy, the equatorial coordinate system[3] uses spherical coordinates without distance coordinates, with a center being the center of Earth. It is therefore not based on the observer's point of view and appears to be fixed relatively to the background stars. The Earth rotation doesn't affect the coordinates.

Here are its two components:

  • declination, which is the angular distance of the object perpendicular to the celestial equator
  • right ascension, which is the angular distance, on the celestial equator, between the object and the vernal equinox.

Here again, a lot of information must be provided.

The celestial equator[4] is the intersection between the celestial sphere and the plane made by the Earth equator.

The vernal equinox[5] is one of the two point on the celestial equator where it intersects with ecliptic plane, which is the plane of the Earth's orbit around the Sun.

The declination is usually described in degrees, minutes and seconds, where the degree is an arc degree (1/360 of a full circle), the minute represents one sixtieth of a degree and the second represents one sixtieth of a minute.

The right ascension is usually described in hours, minutes and seconds, where 24 hours represent a full circle, the minute represents one sixtieth of a hour and the second represents one sixtieth of a minute.

Ecliptic plane

source: wikimedia

Many different units for many different angles

We learned that in astronomy we have to manipulate many angles, and more importantly many different units.

We talked about the arc degree, the degree manipulated with minutes and seconds, angles expressed in hours.

There is also the radian[6], an angle unit used so that a corresponding 90° angle can also be written 2π rad.

Spoiler about the book, units are sometimes mixed up between formulas, which means we must be able to convert an angle from one unit to another.

Such functions will be the first step in our Ruby library and will be the main topic of the next episode.

Happy hacking


Sources

Top comments (0)