Almagest Ephemeris Calculator

Note: This web page is best viewed with a minimum horizontal screen size of 1000 pixels.


The astronomer Claudius Ptolemy. Sculpture in the Münster of Ulm by Jörg Syrlin the Elder (c. 1470).
click for a larger image

Introduction

This web page provides a set of JavaScript calendar and ephemeris modules for calculating geocentric luni-solar and planetary positions for an arbitrary calendar date according to the kinematical models of the sun, the moon and the planets described in the Mathematike Syntaxis (better known from the title of the later Arabic/Latin translations as the Almagest) of Claudius Ptolemy of Alexandria (c. 150 CE).

The mean motions of the sun, the moon and the planets adopted in the Almagest Ephemeris Calculator correspond exactly with Ptolemy’s mean motion tables and the corrections for their eccentric and epicyclical motions are modelled according to the luni-solar and planetary models discussed by Ptolemy in his Almagest.

As Ptolemy’s tables were probably used most often for astrological rather than for astronomical computations, a table displaying the astrological aspects between the luminaries (and the lunar ascending node) with some other astrological quantities is also provided.


How to use the Almagest Ephemeris Calculator

When the web page is loaded the Almagest Ephemeris Calculator automatically selects the epoch date for the tables in Ptolemy’s Almagest as the default date. This corresponds approximately with apparent noon (solar time) at the meridian of Alexandria on 1 Thoth, 1 Nabonassar (or 26 February, 747 BCE, in the proleptic Julian calendar, around 9h 42½m UT).

Other dates and times can be inputted directly in the calendar date module (at present only in the ‘mobile’ Egyptian calendar) or can be set with an auxiliary module that allows for time adjustments in steps ranging from 1-second to 100-year intervals.

It is also possible to adjust the time with the following calendrical units:

Dates, calendars and time in the Almagest

The tables in the Almagest are based on the ancient version of the Egyptian calendar with a constant year length of 365 days and no intercalary days. The epoch of the tables is fixed at the first year of the reign of the Babylonian king Nabu-nasir (Nabonassar, reigned 747-734 BCE) as this predated the earliest (Babylonian) observations that were available to Ptolemy (cf. Almagest III 7). Compared with the Julian calendar, the dates in this calendar shift one day in every four years and it is therefore often referred to as the ‘mobile’ or ‘wandering’ Egyptian calendar.

Ptolemy makes no reference in the Almagest to the more modern version of the Egyptian calendar that was introduced in 26 BCE (or 30 BCE, as some sources suggest) by the Roman emperor Augustus. This calendar, commonly referred to as the Alexandrian or ‘fixed’ Egyptian calendar, remained in step with the Julian calendar (introduced in the Roman Empire in 45 BCE by Julius Caesar) by inserting an intercalary day (a 6th epagomenal day) every four years at the end of the year preceding the Roman year that contained the Julian leap day. Although no use was made of the Alexandrian calendar in the Almagest, a provision for converting to this calendar is included as it was commonly used by later Hellenistic astronomers and astrologers.

In Ptolemy’s time the Egyptian calendar day started at dawn (about one to two nocturnal hours before sunrise) and noon was defined as 6 diurnal hours after sunrise. Likewise, sunset occurred 12 diurnal hours after sunrise with midnight occurring 6 nocturnal hours later. However, as the lengths of diurnal and nocturnal hours depend both on the observer’s latitude as on the season, they are not convenient for astronomical calculations.

Ptolemy therefore adopted hours of equal length (also known as equinoctial hours) in his tables and shifted the epoch from dawn to mean local noon (6 hours) at the meridian of Alexandria. Sunrise, as measured in equal hours, will then on average occur about 6 equal hours earlier but the exact value will depend on the season. Sunset, likewise, will on average occur about 6 equal hours after noon but the exact value will again depend on the season.

Note that dates between sunset and sunrise are commonly indicated in the Almagest as a double date (the first referring to the current day, the second to the day starting after the next sunrise). For the conversion from Alexandria mean local time to Universal Time (Greenwich Mean Time), a longitude difference of exactly 30º 0' 0" between Alexandria and Greenwich has been adopted. A negative offset of 17m 34s has been introduced to correct for the difference between Ptolemy’s “equation of time” and its modern definition (see below).

Note that both the Julian as the Alexandrian calendars are here represented in their ‘ideal’ (or proleptic) forms and do not implement the incorrect use of Julius Caesar’s quadrennial leap year rule before 8 CE. For details on the actual use of these calendars in Egypt during the reign of Augustus, cf. Snyder (1943) and Skeat (1993, 2001) – for an alternative view, cf. Hagedorn (1994) and Jones (2000).

The zodiacal calendar of Dionysius, an otherwise unknown astronomer who observed in Alexandria in the second quarter of the third century BCE, in the calendar module is based on the reconstruction of Böckh (1863) and Van der Waerden (1984). It assumes a solar year of 365 days with a leap day at the end of the third year of each four-year cycle. Each month is assumed to be 30 days in length and is named after the zodiacal sign traversed by the sun during most of that month. The first year of the zodiacal calendar of Dionysius is assumed to start on 26 June 285 BCE, at sunrise, and largely overlaps the first regnal year of Ptolemy Philadelphus.

The calendar module also provides a tentative conversion to the Greek astronomical calendar of Callippus as described by Geminus (Elementa astronomiae VIII.50-60) and often referred to in the Almagest. The conversion is based on a reconstruction of this arithmetical luni-solar calendar from the data in the Almagest by Fotheringham (1924) and Van der Waerden (1960, 1984), with additional constraints derived from other sources by Jones (2000). It assumes that in every 76-year cycle each 64th day is omitted (as well as the last day at the end of the cycle) and that seven years in each 19-year Metonic sub-cycle have an intercalated month (Poseideon II in the years 1, 6 & 14, and Skirophorion II in the years 3, 9, 11 & 17).

The Callippic calendar is assumed to commence on 28 June 330 BCE, at sunset following the new moon after the summer solstice following Alexander the Great’s conquest of Babylon. Other reconstruction schemes are also possible but this appears to be the simplest one that satisfies nearly all known Callippic dates. Both the Dionysian as the Callippic date converters should be used with caution but they may be useful in identifying new Dionysian or Callippic dates which in turn can help to refine our incomplete knowledge on these astronomical calendars.

The equation of time

The equation of time, a correction factor necessary for converting apparent solar time into mean solar time was already recognized by Ptolemy (Almagest III.9). As the correction is negligible for slow-moving luminaries, Ptolemy only applies it to the fastest-moving luminary (the moon).

Ptolemy’s equation of time as function of the mean solar longitude
Click fora larger image

In Ptolemy’s luni-solar and planetary tables the equation of time is defined to be zero at the epoch of the tables (1 Thoth, 1 Nabonassar). The consequence of this choice is that during most of the year the equation of time has a positive value (small negative values only occur when the mean longitude of the sun is between 301.02º and 330.75º).

Ptolemy’s definition for the equation of time was commonly used by astronomers up the late 17th century after when it was replaced by the modern definition resulting in positive and negative values which are equally distributed in the year.

In the Almagest Ephemeris Calculator the correction for the equation of time can be applied to all luminaries by selecting the appropriate mode in the calendar date module (the default mode is ‘off’, i.e. the time for Alexandria is assumed to given in mean solar time).

Converting to other prime meridians

Ptolemy’s astronomical tables are based on the meridian of Alexandria (referred to by Ptolemy as the “Metropolis of all Egypt”).

For conversion to other ancient astronomical prime meridians, contemporary astronomers would have used contemporary estimates for their longitude difference with Alexandria. The most comprehensive and authoritative compilation of geographical longitudes and latitudes in antiquity was also compiled by Ptolemy and is commonly known as the Geographica.

The following table lists some well-known ancient cities that have functioned as astronomical meridians in the past with their geographical longitudes and inferred time offsets relative to Alexandria as tabulated in Ptolemy’s Geographica.

Ancient Astronomical Prime Meridians
Location Longitude Time offset Ref.
Babylon 79º +1h 14m V 20.6
Jerusalem (Hierosolyma) 66º +0h 22m V 16.8
Alexandria 60;30º +0h 00m IV 5.9
Constantinople (Byzantium) 56º –0h 18m III 11.5
Athens 52;45º –0h 31m III 15.22
Rome 36;40º –1h 35m III 1.61

Note that Ptolemy’s geographical longitudes are measured eastwards from the “Fortunate Isles”, the westernmost habitable region of the world known at that time, which are commonly identified with the Canary Islands. In the near future, a complete online version of Ptolemy’s Geographica will be available at Bill Thayer’s website Ptolemy: The Geography.

Predicting equinoxes, solstices, syzygies, planetary stations and planetary aspects

The Almagest Ephemeris Calculator can also be used for predicting the date and time (to the nearest second if desired, although this accuracy was unattainable with the time-measuring devices then available) of the astronomical seasons, the lunar phases (syzygies), planetary stations (when a planet’s motion in longitude changes from direct to retrograde or from retrograde to direct) and planetary aspects such as conjunctions or oppositions between any pair of planets.

For instance, to determine the date of the vernal equinox (when the true solar longitude is 0º) for a given year, input a first estimate (say 25 March, the traditional date in Julius Caesar’s solar calendar) for the date in the calendar date module and click for the solar position module. This results in a true solar longitude value close to 360º/0º. Adjust the time (only the ±1-day and smaller time interval buttons will be necessary) until the true solar longitude is as close to 0º as you want it to be. Return to the calendar date module to obtain the predicted calendar date and time (referred to the meridian of Alexandria) for the vernal equinox of that year.

Likewise, the dates of the other astronomical seasons can be derived by homing in to a true solar longitude of 90º (summer solstice), 180º (autumnal equinox) or 270º (winter solstice). For lunar phases, go to the lunar position module (after inputting a first estimate in the calendar date module) and home in to a true luni-solar elongation of 0º (new moon), 90º (first quarter), 180º (full moon) or 270º (last quarter).

For planetary stations and planetary aspects, go to the luni-solar and planetary aspect module and follow similar procedures. The latter module can also be used to determine when the sun, the moon or a planet enters or leaves a specific zodiacal sign (or one of its smaller astrological partitions) .

Notation and accuracy of the Almagest Ephemeris Calculator

Angular quantities calculated by the Almagest Ephemeris Calculator are expressed in sexagesimal notation (this is indicated by the use of a semicolon (;) separating the integer number of degrees from its sexagesimal parts). Degrees, minutes and seconds are thus expressed as dd;mm,ss.

The Almagest only provides geocentric distances for the sun and the moon. The geocentric distances to the other planets are based on the radii of the planetary deferents and epicycles listed in Ptolemy’s Planetary Hypotheses. The geocentric distances are also expressed in sexagesimal notation.

Certain parameters in Ptolemy’s Almagest, such as the obliquity of the ecliptic and the longitude of the solar apogee, are assumed to be constant in time. This is indicated by outputting these parameters in red. The values outputted in green are still provisional and need to be checked.

In order to obviate the necessity of including bulky double-argument tables for correcting the mean positions of the moon and the planets to their true positions, Ptolemy introduced some simplifications that made it possible to considerably compress the size of the correction tables in the Almagest. The results obtained from the Almagest Ephemeris Calculator will therefore slightly deviate from the results obtained directly from Ptolemy’s tables but the difference will never amount to more than a few minutes of arc.

The mathematical representations of Ptolemy’s kinematical models used in the Almagest Ephemeris Calculator are explained in detail in various publications listed in the bibliography: especially useful in this respect are the works of Neugebauer (1957, 1975), Pedersen (1974), North (1976), Evans (1998) and Jacobsen (1999).


Calendar date module

Calendar Module
  Egyptian calendar date   Day Month Year  
  (noon epoch)     Era Nabonassar
  Alexandria time   h m s (local time since noon)
  Other eras used     Era Philip († Alexander)     Era Augustus  
  in the Almagest     Era Hadrian     Era Antoninus  
  Callippic calendar date   Day Month Cycle Year  
  (sunset epoch)    
  Dionysian calendar date   Day Month Year  
  (sunrise epoch)    
  Alexandrian calendar date   Day Month Year    
  (sunrise epoch)     Era Diocletian
  Nabonassar Day Number   Julian Day Number  
  Julian calendar date   Weekday Day Month Year  
  (midnight epoch)   CE
  Universal Time (UT)   h m s   Equation of time correction

 

Click here for the precession in longitude and obliquity of the ecliptic, the position of the sun, the moon, the planets Mercury, Venus, Mars, Jupiter, Saturn or a table listing the luni-solar and planetary aspects.


Precession in longitude and obliquity of the ecliptic

Precession and Obliquity of the Ecliptic Module
 
Precession in longitude from the epoch of the planetary tables (1 Thoth, 1 Nabonassar)
Precession in longitude from the epoch of the star catalogue (1 Thoth, 885 Nabonassar)
Offset from the sidereal equinox of the “ancient astrologers” (after Theon of Alexandria)
Obliquity of the ecliptic

Return to the calendar date module.


Geocentric position of the sun

Solar Module
 
Mean longitude (λ0)
Longitude solar apogee (λA)
Mean anomaly (measured from the solar apogee [κ])
Equation of centre (prosthaphairesis [η(κ)])
True anomaly (κ)
Geocentric longitude (λ)
Geocentric latitude (β)
Geocentric right ascension (α)
Geocentric declination (δ)
Solar equation of time (equatio dierum)
Geocentric distance (deferent radius = 60)
Geocentric distance (terrestrial radii)
Geocentric parallax
Geocentric angular diameter

Return to the calendar date module.


Geocentric position of the moon

Lunar Module
 
Mean longitude (λ)
Mean longitude lunar apogee (λA)
Longitude ascending node lunar orbit (λΩ)
Mean epicyclic anomaly (α)
Mean luni-solar elongation (η)
Equation of anomaly (prosneusis [c3(2η)])
True epicyclic anomaly (α0)
Equation of centre (prosthaphairesis [c])
Latitude argument (measured from maximum northern latitude [ω'])
Geocentric longitude (λ)
Geocentric latitude (β)
Geocentric right ascension (α)
Geocentric declination (δ)
True luni-solar elongation (η)
Geocentric distance (terrestrial radii)
Geocentric parallax
Geocentric angular diameter

Return to the calendar date module.


Geocentric position of Saturn

Saturn Module
 
Mean longitude of the centre of the epicycle
Longitude apogee of the eccentre (λA)
Mean eccentric anomaly (from the apogee of the eccentre [κ])
Mean epicyclic anomaly (from the apogee of the epicycle [α])
Equation of centre (prosthaphairesis [η(κ)])
True eccentric anomaly (κ0)
True epicyclic anomaly (α0)
Equation of anomaly (θ)
Argument of latitude (ω)
Geocentric longitude (λ)
Geocentric latitude (β)
Geocentric right ascension (α)
Geocentric declination (δ)
True elongation from the sun
Geocentric distance (deferent radius = 60)
Geocentric distance (terrestrial radii)
Geocentric parallax
Mean elongation from the mean position of Jupiter

Return to the calendar date module.


Geocentric position of Jupiter

Jupiter Module
 
Mean longitude of the centre of the epicycle
Longitude apogee of the eccentre (λA)
Mean eccentric anomaly (from the apogee of the eccentre [κ])
Mean epicyclic anomaly (from the apogee of the epicycle [α])
Equation of centre (prosthaphairesis [η(κ)])
True eccentric anomaly (κ0)
True epicyclic anomaly (α0)
Equation of anomaly (θ)
Argument of latitude (ω)
Geocentric longitude (λ)
Geocentric latitude (β)
Geocentric right ascension (α)
Geocentric declination (δ)
True elongation from the sun
Geocentric distance (deferent radius = 60)
Geocentric distance (terrestrial radii)
Geocentric parallax
Mean elongation from the mean position of Saturn

Return to the calendar date module.


Geocentric position of Mars

Mars Module
 
Mean longitude of the centre of the epicycle
Longitude apogee of the eccentre (λA)
Mean eccentric anomaly (from the apogee of the eccentre [κ])
Mean epicyclic anomaly (from the apogee of the epicycle [α])
Equation of centre (prosthaphairesis [η(κ)])
True eccentric anomaly (κ0)
True epicyclic anomaly (α0)
Equation of anomaly (θ)
Argument of latitude (ω)
Geocentric longitude (λ)
Geocentric latitude (β)
Geocentric right ascension (α)
Geocentric declination (δ)
True elongation from the sun
Geocentric distance (deferent radius = 60)
Geocentric distance (terrestrial radii)
Geocentric parallax

Return to the calendar date module.


Geocentric position of Venus

Venus Module
 
Mean longitude of the centre of the epicycle
Longitude apogee of the eccentre (λA)
Mean eccentric anomaly (from the apogee of the eccentre [κ])
Mean epicyclic anomaly (from the apogee of the epicycle [α])
Equation of centre (prosthaphairesis [η(κ)])
True eccentric anomaly (κ0)
True epicyclic anomaly (α0)
Equation of anomaly (θ)
First latitude component (β1)
Second latitude component (β2)
Third latitude component (β3)
Geocentric longitude (λ)
Geocentric latitude (β)
Geocentric right ascension (α)
Geocentric declination (δ)
True elongation from the sun
Geocentric distance (deferent radius = 60)
Geocentric distance (terrestrial radii)
Geocentric parallax

Return to the calendar date module.


Geocentric position of Mercury

Mercury Module
 
Mean longitude of the centre of the epicycle
Longitude apogee of the eccentre (λA)
Mean eccentric anomaly (from the apogee of the eccentre [κ])
Mean epicyclic anomaly (from the apogee of the epicycle [α])
Equation of centre (prosthaphairesis [η(κ)])
True eccentric anomaly (κ0)
True epicyclic anomaly (α0)
Equation of anomaly (θ)
First latitude component (β1)
Second latitude component (β2)
Third latitude component (β3)
Geocentric longitude (λ)
Geocentric latitude (β)
Geocentric right ascension (α)
Geocentric declination (δ)
True elongation from the sun
Geocentric distance (deferent radius = 60)
Geocentric distance (terrestrial radii)
Geocentric parallax

Return to the calendar date module.


Luni-solar and planetary aspects

Luni-Solar & Planetary Aspect Module
 
  Sun Moon Lunar
node
Saturn Jupiter Mars Venus Mercury
Sun ***
Moon ***
Lunar node  ***
Saturn ***
Jupiter ***
Mars ***
Venus ***
Mercury ***
 
Select orb of influence  
Rulerships and Special Degrees
 
  Sun Moon Lunar
node
Saturn Jupiter Mars Venus Mercury
Sign & degree
Sign ruler
Decan ruler
Term ruler
Monomoiria
Dodekatemoria
Arc from exaltation 
  (Ari 19) (Tau 3) (Gem 3) (Lib 21) (Cnc 15) (Cap 28) (Psc 27) (Vir 15)
 
Select longitude system  
Degree notation system  
Select term ruler system  

Return to the calendar date module.

Aspects and orbs of influence

The above table lists the aspects (based on a 2-, 3-, 4- and 6-fold division of the ecliptic circle) that are commonly encountered in classical, Islamic and medieval astrological texts:

According to Greek and later Islamic astrological traditions a luminary is considered to be “tashriq” or “under the rays” of the sun when its angular distance from the sun’s centre is:

Within 0;16º of the sun’s centre a luminary is termed “cazimi”, derived from the later Arabic term indicating that it is in the “heart” of the sun, and up to 6º from the sun’s centre a luminary is termed “combust”.

The lower left half of the first table lists the aspects while the angular differences (in degrees and decimal parts) in ecliptic longitude are tabulated in the upper right half of the table.

Signs and sign rulers

The second table lists the sign and degree within the sign for each luminary with some further astrological quantities. The zodiacal signs are abbreviated as follows: Ari = Aries, Tau = Taurus, Gem = Gemini, Cnc = Cancer, Leo = Leo, Vir = Virgo, Lib = Libra, Sco = Scorpius, Sgr = Sagittarius, Cap = Capricornus, Aqr = Aquarius and Psc = Pisces.

The “sign ruler” (also known as the “domicile lord”) is the planet that is traditionally assigned to rule over each of the signs: Saturn is said to rule over Capricornus and Aquarius, Jupiter over Sagittarius and Pisces, Mars over Aries and Scorpius, the sun over Leo, Venus over Taurus and Libra, Mercury over Gemini and Virgo and finally, the moon over Cancer.

Tropical versus sidereal longitudes

Ptolemy’s ecliptic longitudes are measured with respect to the First Point of Aries (i.e. the place occupied by the sun at the vernal equinox) and are therefore known as tropical longitudes. According to Ptolemy, the Greek astronomer Hipparchus of Nicaea (c. 150 BCE) discovered that this point (0º Aries) slowly shifts westwards with respect to the fixed stars. The rate of the precession of the equinoxes, as it is commonly called, was estimated by Ptolemy to be about 1º in 100 Egyptian years.

Theon of Alexandria (Small Commentary on Ptolemy’s Handy Tables 12) mentions a tradition of “ancient astrologers” to measure ecliptic longitudes from a reference point that oscillated 8º backwards and forwards with respect to the stars. Some 128 years before the reign of the Roman emperor Augustus (i.e. around 158 BCE), this reference point was supposed to be at its farthest limit 8º away from the (tropical) First Point of Aries but since then it was assumed to be moving towards it at a rate of 1º in every 80 Egyptian years. From Theon’s description one can infer that after its coincidence with the (tropical) First Point of Aries (which would occur in 483 CE, long after Theon’s time), this reference point was believed to reverse in direction again and move away from it at the same rate, thus repeating its backward and forward motions in a 1280-year cycle.

Though the sidereal longitude system is supported here (it is often encountered in Greek astrological papyri), the tropical longitude system is chosen as default as this was the system that was used by Ptolemy (and recommended by Theon of Alexandria) for astronomical calculations.

Decan rulers

The “decans” are divisions (of Egyptian origin) of each zodiacal sign into three 10º sections, each of which is associated with a planetary ruler (“prosopa” or “planetary face”). According to Firmicus Maternus (Mathesis II.4) and Paulus of Alexandria (Isagoge 4) the sequence of decan rulers follows the traditional sequence of the planets (Saturn, Jupiter, Mars, sun, Venus, Mercury, moon), starting with Mars as the ruler of the first decan of Aries and ending with Mars as the ruler of the last decan of Pisces.

Term rulers

The “terms” are sections of unequal lengths dividing the zodiacal signs, each of which are ruled by one of the five star-like planets (thus excluding the sun and the moon). Ptolemy describes three such pentazone systems in his Tetrabiblos (I.20-21): one attributed to the “Chaldeans” (i.e. Babylonians), one to the “Egyptians” (probably referring to the 2nd-century BCE astrologers Nechepso and Petosiris) and one attributed to an “ancient manuscript”. The latter system is now commonly known as Ptolemy’s system.

A variant system by Vettius Valens (Anthologiae III.6[9]) also assigns terms in each sign to the sun and the moon. Note that both the Chaldean system as the heptazone system of Vettius Valens distinguish between day- and night-time term rulers. In the Chaldean system the planets Mercury and Saturn switch positions depending on whether the sun is above or below the horizon: in the system of Vettius Valens the planets Venus and Jupiter also switch positions with those of the moon and the sun.

Ptolemy’s pentazone system is also mentioned by Vettius Valens (Anthologiae I.3), who, however, gives different lengths and rulers for the terms of Libra. The aspect module adopts the Egyptian system as default as this was the most commonly used system in the Greek horoscopes that are known to us.

Monomoiria

The “monomoiria” are the planets associated with each degree of the zodiac. Of the various monomoiria systems described in the astrological literature, the system of Vettius Valens (Anthologiae IV.26) has been implemented in the aspect module (cf. Neugebauer & van Hoesen, 1959, p. 10).


Ptolemy’s triquetrum (or ‘parallactic instrument’) according to William Cunningham’s The Cosmographical Glasse, conteinyng the Pleasant Principles of Cosmographie, Geographie, Hydrographie, or Navigation (London: John Day, 1559)
Click fora larger image

Bibliography (chronological)

Editions and Translations of the Almagest

Studies on the Kinematical Models of the Almagest

Studies on the Calendars and Eras used in the Almagest

On the Supposed Discovery of the Third Lunar Inequality ("Variation") by Islamic Astronomers [not yet checked/incomplete links]

Online Resources


I am grateful to Dennis Duke and Yaaqov Loewinger for suggesting corrections and improvements.


Return to the main page

last updated on 27 October 2016