Surya Siddhanta
A1000 Plus Year Old Hindu Text Book of Astronomy
A Description of the Solar Eclipse Calculation
http://users.hartwick.edu/~hartleyc/hindu/suryadescribe.html

The first part of the Surya Siddhanta gives a rather lengthy description of how to calculate the Hindu day count. Given a particular date the Hindu day count is the number of days elapsed between the end of creation and the particular date given. Creation ended 1,955,880,000 years before midnight February 18, 3102 B.C. at Ujjayni, India. The Hindu day count  is very similar to the Julian Day used by modern astronomers; the Julian Day is the number of days elapsed since noon January 1, 4713 B.C. at Greenwich, England. The Hindu calculation is overly complicated because it is based on a lunar calendar system and in order to determine the number of days one must first determine the number of lunar months. Learn more about the Hindu Lunar Calendar.

For a particular day, once the day count has been determined, the Surya Siddhanta describes how to determine the celestial longitude (measured along the ecliptic) of the particular body (Sun, Moon, or planet) in question. The longitude is calculated by first calculating the mean longitude for the particular body; this is the longitude that the body would have if it were moving around the celestial sphere at a constant rate. (It has the same meaning in modern calculations of positions of the Sun, Moon, and planets.) Then a correction is calculated based on the assumption that the body is sometimes ahead and sometimes behind the mean longitude. The correction amounts to assuming that the body moves on a smaller circle and the center of this circle is at the mean longitude. At times the body is at the leading edge of the smaller circle, and thus ahead of the mean longitude; later, as the body moves around the smaller circle it is near the trailing edge of the circle and thus behind the mean longitude. This is exactly the same as described by Ptolemy (150 A.D.) in his Almagest; the smaller circle is called an epicycle by Ptolemy. The Hindus apparently did not believe the body actually traveled around the epicycle however, instead they believe there was some sort of force which at times drew the body ahead in its motion, and at other times pulled it back in its motion.

In any case the true longitude of the body is then computed by adding the correction to the mean longitude.

A solar eclipse can only occur on a day when there is a New Moon. Since every descent ancient astronomer would already have algorithms for determining the dates of the New Moon we do not need do discuss how that is done here. In particular if you have a lunar calendar the New Moon is always the first day of each month; simple!

To determine whether a solar eclipse occurs one must not only know the day of the New Moon but one must also know the time at which the New Moon occurs; that is the time of that day when the Sun and Moon have the same true longitude. The Hindu method is quite simple; the true longitudes of the Sun and Moon are determined for the time of the beginning of the New Moon day; they are then re-determined for the beginning of the next day. By taking differences one determines the rate at which the Sun and Moon are moving in longitude that day, and then it is a simple matter of interpolation to determine the time of day at which they had identical true longitudes. At this point the time of the New Moon has been established as well as the true longitudes of the Sun and Moon at that time.
The path that the Sun takes as it moves around the celestial sphere is called the ecliptic. The path of the Moon, as it moves around the celestial sphere, is sometimes north of the ecliptic, and sometimes south of the ecliptic. The point at which the Moon crosses the ecliptic moving north is called the ascending node and the point at which the Moon crosses the ecliptic moving south is called the descending node.

An eclipse can only occur if the Sun and Moon are both close to the nodes of the orbit of the Moon, and it must also be a New Moon. Sometimes the New Moon occurs when the Moon is away from the nodes, and thus so far from the ecliptic that it passes by the Sun without passing in front of it. Therefore in order to determine if a solar eclipse occurs on a particular New Moon one needs determine the positions of the ascending and descending nodes of the orbit of the Moon.
The ascending and descending nodes are treated by the Hindu astronomers as though they are celestial bodies. They are given names, Rahu and Ketu and their positions, true longitudes, are calculated by the same algorithm that the positions of the other bodies are calculate. Rahu and Ketu are called the shadow planets, as they are not real planets but they move as though they were. Learn more about Rahu and Ketu. I have also prepared an animation to help you better understand the orbit of the Moon, nodes, and how eclipses come about.

Knowing the true longitudes of the Sun and Moon at the time of the New Moon (they are identical of course) and the true longitudes of Rahu and Ketu allows one to calculate the celestial latitude of the Moon at this time. It is determined by knowing the difference in longitude between the nodes and the Moon and the amount by which the plane of the orbit of the Moon is tilted with respect to the plane of the path of the Sun. The Surya Siddhanta gives prescriptions for performing this calculation.

The Surya Siddhanta gives numbers for the distances to the Sun and the Moon. With these and the celestial latitude of the Moon (in ecliptic coordinates) the Surya Siddhantathen tells how to calculate the location of the shadow of the Moon relative to the Earth. From this one can determine if the shadow hits the Earth and if so where. Knowing the distances to the Sun and Moon, and the sizes of the Sun and Moon, the Surya Siddhantathen describes how to calculate the angular size of the Sun and Moon at the time of the eclipse. This determines whether the eclipse will be a total eclipse or an annular eclipse.

Comments on the Calculations
The times of solar eclipses predicted by the Surya Siddhanta algorithms compare well with modern calculations considering the simplicity of the methods. They are often within 30 minutes. This is not an acceptable error, however,  if you are using these calculations to determine the location on Earth from which one will see the total eclipse. The Earth rotates by 7.5 degrees in 30 minutes which means, if there is a 30 minute error, the shadow of the Moon on the Earth will be 7.5 degrees in latitude different from where the Surya Siddhantapredicts it will be at the moment of the New Moon. At the equator this amounts to about 500 miles. The accuracy is sufficient however to determine the approximate time of day of an eclipse and one would be amply warned to start looking for the eclipse.

The calculation of the celestial latitude of the Moon at the time of the New Moon is close enough to allow one to get a good idea as to whether an eclipse will occur or not and also in which hemisphere of the Earth it might be total.

I have also written a Brief History of the Surya Siddhanta.
I have written a Javascript program to carry out the calculations for the circumstances of solar eclipses according to the prescriptions of the Surya Siddhanta. It is found on my  Circumstances of a Solar Eclipse page.

A Very Brief History of the Surya Siddhanta
http://users.hartwick.edu/~hartleyc/hindu/suryahistory.html

Around 300-400 B.C. Mesopotamian astronomers developed numerical methods to predict the position of the Sun, Moon and known planets based on careful observations of these objects. At about the same time Greek astronomy was beginning. The Greek Apollonius (around 200 B.C.) developed the theory of epicyclic circular motions for the planets. He proposed that the planets did not move in circles around the Earth at a uniform rate but instead they moved at a uniform rate on a small circle called an epicycle and the center of the epicycle moved at a uniform rate around the Earth. This model successfully mimicked retrograde motion of the planets where the planets appear to slow, stop, precede backwards and then more forward again against the back ground stars in the course of several months.

Hipparchus (around 150 B.C.) used observational data attributed to the Mesopotamians to refine the calculations and two hundred years later Ptolemy, during the Roman imperial period, published the monumental Almagestin which he described somewhat more elaborate numerical models, still based on epicycles, which were used for the next 1400 years to predict the positions of the Sun, Moon and planets.

During the first century A.D astronomers in India were influenced by Greek astronomical texts, and their Mesopotamian arithmetical methods. Following this contact Indian astronomy seems to have developed in near isolation. Thus, a look at ancient Hindu astronomy, which was based on the pre-Ptolemy contact, affords an interesting glimpse at very early methods of astronomical calculations.

The oldest Sanskrit astronomical texts to survive were written around 600 A.D. One of the most notable of these text is the Surya Siddhantawhich survives in a much revised version. In 1858 Ebenezer Burgess published an annotated English translation of this text, available now as Surya-Siddhanta; a text-book of Hindu astronomy, Ebenezer Burgess, Kessinger Publishing Company (http://www.kessinger-publishing.com/), 1998. Hindus believe that the Surya Siddhantawas produced by devine revelation and came from Surya the Sun God.

I have written a Description of the Surya Siddhanta Solar Eclipse Calculationsand a page which runs a Javascript program to Calculate the Circumstances of a Solar Eclipseusing the methods of the Surya Siddhanta



Hindu calendar

http://users.hartwick.edu/~hartleyc/hindlunarcal.htm
In ancient times the basic unit of calendar time was not the solar day, it was the lunar day, or tithi. The approximately 30 tithi formed a lunar month of approximately 29.5 solar days. Thus one full Moon to the next full Moon is approxiimateluy 29.5 solar days which is equal to 30 tithi or lunar days. Thus the tithi is a little less than a solar day. Probably the tithi was invented to avoid the complications of having to deal with the extra half day in the 29.5 solar day month. It however created other complications. The tithi could begin at any time of a solar day so it was decided that the tithi that prevailed at sunrise would be the tithi for the whole current day. The year normally consisted of twelve months, of 30 tithi each and was 360 tithi long. It usually began with the Caitra (March-April) month, but in some systems the it began with the Karttika (October-November). Three hundred sixty tithi is only 354 solar days and the solar year is 365.25 solar days thus every second or third year an extra month was added. It is interesting to note that a 360 tithi long year makes use of the very convenient number 360. Ancient Babylonians and ancient Maya also used a 360 day year for their calendars, but they used solar days rather than lunar days.
The solar calendar was imported to India in the time of Gupta (300 A.D.) with months named for the signs of the zodiac. The names of the months are a close translation of the Greek originals. Thus the months are Mesa (Aries), Vrsagha (Taurus). Mithuna (Gemini), Karaata (Cancer), Simha (Leo), Kanya (Virgo), Tula (Libra), Vrscika (Scorpio), Dhanus (Sagittarius), Makara (Capricornus), Kumbha (Aquarius) and Mina (Pisces.) The seven day week was also introduced with the name of the day being the name of the planetwhich precides over the days as in the Greco-Roman system. In fact the order of the planets is the same as in the Greco-Roman system, a vestige of the ordering by ancient Babylonians.
Today in India many religious festivals are determined by their lunar calendar date. Diwali, the new year festival, celebrated all over India, occurs on the New Moon which begins the lunar month Karttika (usually occuring in October or November).

If you would like to learn more about all kinds of calendars consult the excellent site Calendarzone!

If you would like to go to an on-line database on everything on the Vedik Panjika (Almanac and calendar) click HERE.