Panchangam Program
Select Month: Year: Place:


Notes

This program gives tamil month name, date, moon phase and star position for any Roman Calendar month. Reference point for calculation is Ujjain. Calculation is in days avoiding calendar year problems.
Input is in (month - year) as Gregarian calendar.
Julian date
Julian dates (abbreviated JD) are simply a continuous count of days and fractions since noon Universal Time on January 1, 4713 BC (on the Julian calendar).
A.D. 1 Jan 1 UT00:00:00.0 is 1721423.500000
A.D. 2019 Jan 1 UT 00:00:00.0 is 2458484.500000

Julian Website
Julian dates are widely used as time variables within astronomical software. The time scale that is the basis for Julian dates is Universal Time, and that 0h UT corresponds to a Julian date fraction of 0.5. Various calendar systems have been in use at different times and places around the world. This implementation uses the Gregorian calendar and its predecessor Julian calendar.

The Julian calendar has a leap year every fourth year. This will work if one year is 365.25. But a tropical year is also known as a solar year approx 365.24219 days. So every 100 years, 1.219 days are added. So, Gregorian calendar was modified and has a leap year every fourth year except century years not exactly divisible by 400. Changeover from the Julian calendar to the Gregorian calendar occurred in October of 1582, according to the scheme instituted by Pope Gregory XIII. Specifically, for dates on or before 4 October 1582, the Julian calendar is used; for dates on or after 15 October 1582, the Gregorian calendar is used. The error accumulated in the 13 centuries since the Council of Nicaea in AD 325 was corrected by a deletion of 10 days. Calendar cycles repeat completely every 400 years, where 303 are regular years of 365 days and 97 are leap years of 366 days. A mean calendar year is 365+(97/400) days = 365.2425 days.
The Julian calendar day Thursday, 4 October 1582 was followed by the first day of the Gregorian calendar, Friday, 15 October 1582 (the cycle of weekdays was not affected). Thus, there is a ten-day gap in calendar dates, but no discontinuity in Julian dates or days of the week: 4 October 1582 (Julian) is a Thursday, which begins at JD 2299159.5; and 15 October 1582 (Gregorian) is a Friday, which begins at JD 2299160.5.

Ancient Calendars

Egyptians, Phoenicians, Persians, Greeks, Roman, and many cultures began their new year with the fall equinox. The Roman Festival of Saturnalia for god Saturn took place between December 17th and 23rd. Birthday of the unconquered sun was held on December 25th for Sun god Mithra. The Winter Solstice on around December 22nd, meant that the winter was over and spring was coming.

Around 1600 years back the day Sun enters Makara Rashi (Capricorn) was coinciding with the day of Uttarayana or Winter Solstice or Surya beginning Northern journey (Northern hemisphere). This happens to be harvest season. It is also Thiruvalluvar new year or early Tamil New Year starting on winter or December solstice. Because of earth's precession, Tamil new year shifted by around 22 days.

Mesopotamians and early Indians celebrated new year around the time of the vernal equinox, March 23 (Current Hindu Saka calendar). There is a parallel system of the Vikrama Era. The origin of the Shaka era is highly controversial, associated to the ascension of many other kings such as Gautamiputra Satakarni Chashtana, Kanishka and Nahapana. Saka era or Shalivahana Sakabda is the vernal equinox of the year AD 78 (around 28200 days from common era). Later many Indian systems shifted new year from solstice to March Equinox, during the time of Bhadra, Indian astronomer. Because of earth's precession, Tamil new year shifted by around 22 days.

Indian Calendars
Hindu calendar is a collective name for many luni-sidereal calendars and Shalivahana calendar
Kalacakra calendar in use, 60 year cycle starting with Prabhava, is by Pandita Somanatha of Kashmir/Himalayas, in 367 CE. Vernal equinox of 367 CE is Prabava Varsham. He further developed sexa decimal system. The earth's axis wobble that causes the precession of the equinoxes is approximately 25,920 years or 432 sixty year cycles. Chandranath introduced lunisolar calendar and Indian cycle of 60 years in Tibet and China.
Kaliyuga calendar; (3102 BCE);
Buddha Nirvana calendar; (544 BCE)
Bikram Sambat (56 BCE) or Vikrama calendar.lunar months, solar sidereal years
Thiruvalluvar calendar (31 BCE)
Saka calendar of (78 CE or 3181 Kali) initiated by Shalivahana or Satavahana king Gautamiputra Satakarni
Shaka Samvat (indian official): solar months, solar tropical years
Bengali Calendar (593 CE)
Tamil Nadu/Kerala: solar tropical years and solar months
Kolla Varsham calendar or Malayalam calendar (824 CE)
There are other eras such as: Vedanga Jyotisa; Gaurabda Gaudiya; and Kolla Varsham. Vikrama Samvat:

Years are counted in the Saka era, which starts its year 0 in the year 78 of the Common Era (28205 days from Common Era on equinox). Its structure is similar to the Persian calendar. The names of the months are derived from older, Hindu lunisolar calendars.

Solar sidearal and lunisolar months
1) Aries - Mesham - Chaitra - Chitirai
2) Taurus - Vrishabam - Vaishaakha - Vaikasi
3) Gemini - Mithunam - Jyaishtha - Aani
4) Cancer - Karkata - Aashaadha - Aadi
5) Leo - Simham - Shraavana - Aavani
6) Virgo - Kanya - Bhaadrapada - Purratasi
7) Libra - Tula - Aashvayuja - Aiypasi
8) Scorpio - Vrischikam - Kaartika - Kaarthigai
9) Sagittarius - Dhanur - Maargashiirsha - Maargazhi
10) Capricon - Makaram - Pausha - Thai
11) Aquarius - Kumbham - Maagha - Maasi
12) Pisces - Meenam - Phaalguna - Panguni
Nakshatras
1) Aswinee - Asvini - Beta Arietis (3)
2) Apabarani - Barani - 35 Arietis (3)
3) Krittikaa - Karthikai - Eta Tauri (6)
4) Rohinee - Rohini - Aldebaran (5)
5) Mrigaseeroo - Mirugasirsham - Lambda Orionis (3)
6) Ardra - Thiruvadirai - Alpha Orionis (1)
7) Punarvasu - Punarpoosam - Beta Geminorium (2 to 4)
8) Pushya - Poosam - Delta Cancri (3)
9) Aslesha - Aayilyam - Alpha Hydroe (1)
10) Makha - Magam - Regulus (5)
11) Poorvaphalguni - Pooram - Delta Leonis (2)
12) Uthraphalguni - Uttaram - Beta Leonis (2)
13) Hastha - Hastham - Delta Corvi (3)
14) Chitraa - Chitirai - Spica Virginis - Vegus (1)
15) Swathi - Swati - Arcturus (1)
16) Vishakha - Visakam - Alpha Libroe (2)
17) Anuradha - Anusham - Delta Scorpio (4)
18) Jyeshta - Kettai - Antares (3)
19) Moola - Moolam - Lambda Scorpio (11)
20) Poorvashada - Pooradam - Delta Sagittari (2)
21) Uthrashada - Uttaradam - Sigma sagittari (3)
21-22) Abhijit - Vega, the brightest star in the northern constellation of Lyra
22) Sravana - Thiruvonam - Alpha Aquiloe (3)
23) Dhanishta - Avittam - Beta Delphinum (4)
24) Sathabhisha - Sadayam - Lambda Aquarius (100)
25) Poorvabhadrapada - Purattadhi - Alpha Pegasi (2)
26) Utharabhadrapada - Uttarattadhi - Gama Pegasi (2)
27) Rewati - Revathi - Zeta Piscum (32)
Astronomical Zodiac 13 actual signs
1) Aries - Apr 18 to May 13
2) Taurus - May 13 to Jun 21
3) Gemini - Jun 21 to Jul 20
4) Cancer - Jul 20 to Aug 10
5) Leo - Aug 10 to Sep 16
6) Virgo - Sep 16 to Oct 30
7) Libra - Oct 30 to Nov 23
8) Scorpius - Nov 23 to Nov 29
9) Ophiuchus - Nov 29 to Dec 17
10) Sagittarius - Dec 17 to Jan 20
11) Capricorn - Jan 20 to Feb 16
12) Aquarius - Feb 16 to Mar 11
13) Pisces - Mar 11 to Apr 18

Astronomical cycles
It uses concept of cycles, when planets align. Ammavasai is alignment of sun and moon. Metonic cycle is 19 years or 235 lunar months or approx 6940 days, nearly a common multiple of the solar year and the synodic (lunar) month. With in 19 years, every 8 and 11 are close match. Callippic cycle, is a 76-year cycle of 27759 days.
14th April 2010, solar lunar cycles align
The saros is a period of approximately 223 synodic months (approximately 6585.3211 days, or 18 years and 11 days and 8h), that can be used to predict eclipses of the Sun and Moon. One saros period after an eclipse, the Sun, Earth, and Moon return to approximately the same relative geometry, a near straight line, and a nearly identical eclipse will occur, in what is referred to as an eclipse cycle.There are many cycles like this
The Wolf cycle (solar sunspot cycle) has a period that fluctuates but averages 11.2 years. Jupiter’s solar orbital cycle is 11.9 Earth years.
Saturn, the second-largest planet, has a solar orbital cycle of 29.4 Earth years.
This leads to Jupiter-Saturn conjunction every 19.9 years (J/S Synodic Cycle).
A full cycle of Jupiter / Saturn around the sun (J/S Tri-Synodic Cycle) is 59.6 years.
Ancient Astronomical Records
Ancient cultures often modified natural rock formations or built stone monuments to mark the motions of the sun and moon, charting the seasons, creating calendars and monitoring eclipses. Many believed the sun revolved around the Earth, although few astronomers know the truth quite early.

About 1000 BC, the Babylonians have kept a consistent record of lunar observations by clay tablets inscribed with cuneiform writing. This was the basis for Babylonian lunar calendars. There are similar developments by other cultures like Mayans, Indus, Chinese and Egyptians. However, they all seem to have lacked geometrical or physical interpretation of their data.

According to the astronomer and mathematician the Aryabhatta finished his book "Aryabhattiya" in 499 CE, and wrote the book in the year 3600 of the Kali Age. Kali Yuga started in 3102 BCE. The starting point of Kali Yuga is an extremely rare planetary alignment, which is depicted in the Mohenjo-Daro seals.
Yukteswar in the book The Holy Science (1894), states that a complete Yuga Cycle takes 24,000 years, and is comprised of an ascending cycle of 12,000 years when virtue gradually increases and a descending cycle of another 12,000 years.
There are many interpreetations on works of Aryabhatta, Paulisa, Srishena, Vishnucandra and others. The general understanding in ancient Indian astronomy was that all the planets commenced their movement together at 0° of Aries but returned to the same position in the heavens, at certain fixed intervals, resulting in a universal conjunction. Surya Siddhanta states that sun was 54 degrees away from vernal equinox when Kaliyuga started on a new moon day, corresponding to February 17/18, 3102 BCJ, at Ujjain (75deg47minE 23deg 15 min N). Varaha Mihira states that 2526 years before start of saka count (either Shalivahana saka starting in 79 AD or Vikrama saka starting in 57 BC)

Ptolemy described lunar motion by using a well-defined geometric model of epicycles and evection. Isaac Newton developed a complete theory of motion and mechanics. Kepler's laws of planetary motion are three scientific laws describing the motion of planets around the Sun, by improving the heliocentric theory of Nicolaus Copernicus: 1. The orbit of a planet is an ellipse with the Sun at one of the two foci.
2. A line segment joining a planet and the Sun sweeps out equal areas during equal intervals of time.
3. The square of the orbital period of a planet is directly proportional to the cube of the semi-major axis of its orbit. In astronomy, evection (Latin for "carrying away") is the largest inequality produced by the action of the Sun in the monthly revolution of the Moon around the Earth. Evection causes the Moon's ecliptic longitude to vary by approximately ± 1.274° (degrees), with a period of about 31.8 days. The evection in longitude is given by the expression {\displaystyle +4586.45''\sin(2D-\ell )}{\displaystyle +4586.45''\sin(2D-\ell )}, where {\displaystyle D}D is the mean angular distance of the Moon from the Sun (its elongation, and {\displaystyle \ell }\ell is the moon's mean angular distance of the moon from its perigee (mean anomaly).[3] It arises from an approximately six-monthly periodic variation of the eccentricity of the Moon's orbit and a libration of similar period in the position of the Moon's perigee, caused by the action of the Sun.[4][5] The evection opposes the Moon's equation of the center at the new and full moons, and augments the equation of the center at the Moon's quarters. This can be seen from the combination of the principal term of the equation of the center with the evection: {\displaystyle +22639.55''\sin(\ell )+4586.45''\sin(2D-\ell ).}{\displaystyle +22639.55''\sin(\ell )+4586.45''\sin(2D-\ell ).} At new and full moons, D=0° or 180°, 2D is effectively zero in either case, and the combined expression reduces to {\displaystyle +(22639.55-4586.45)''\sin(\ell ).}{\displaystyle +(22639.55-4586.45)''\sin(\ell ).} At the quarters, D=90° or 270°, 2D is effectively 180° in either case, changing the sign of the expression for the evection, so that the combined expression then reduces to {\displaystyle +(22639.55+4586.45)''\sin(\ell )}{\displaystyle +(22639.55+4586.45)''\sin(\ell )}

Sun Earth facts

The sun lies at the heart of the solar system, holding 99.8 percent of the solar system's mass. Sun is roughly 109 times the diameter of the Earth — about one million Earths could fit inside the sun. The visible part of the sun is about 5,500 degrees Celsius, while temperatures in the core reach more than 15 million C. The sun is one of more than 100 billion stars in the Milky Way. It orbits some 25,000 light-years from the galactic core, completing a revolution once every 250 million years or so. The sun was born about 4.6 billion years ago.
Earth's perihelion occurs around January 3, and the aphelion around July 4 (for other eras, see precession and Milankovitch cycles). The changing Earth–Sun distance results in an increase of about 6.9%
aphelion 152.10×106 km
perihelion 147.10×106 km
semimajor axis 149.60×106 km
eccentricity 0.0167086
inclination 7.155° to Sun's equator - 1.578690° to invariable plane
longitude of the ascending node 174.9°
longitude of perihelion 102.9°
argument of periapsis 288.1°
period 365.256363004 days
average orbital speed 29.78 km/s or 107,208 km/h
https://en.wikipedia.org/wiki/Earth%27s_orbit
Seasons
Source: Vector image: Gothika. CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=4308370

Orbits
Source: Original image by Niko LangSVG version by User:Booyabazooka - Own work, CC BY-SA 2.5,

Moon facts

https://en.wikipedia.org/wiki/Orbit_of_the_Moon
Semi-major axis 384,748 km
Mean distance 385,000 km
Perigee (min. distance from Earth) 363,228.9 km avg. (356400–370400 km)
Apogee (max. distance from Earth) 405,400 km avg (404000–406700 km)
Mean eccentricity 0.0549006 (0.026–0.077)
Mean obliquity 6.687°
  Mean inclination of orbit to ecliptic 5.15° (4.99–5.30)
of lunar equator to ecliptic 1.543°
precession of nodes with respect to the ascending node (precesses in 6793.4765 days = 18.5996 years)18.5996 years
precession of line of apsides 8.8504 years
Sidereal month 27.321662 with respect to the distant stars (13.36874634 passes per solar orbit)
Synodic month 29.530589 with respect to the Sun (phases of the Moon, 12.36874634 passes per solar orbit)
Tropical month 27.321582 with respect to the vernal point (precesses in ~26,000 years)
Anomalistic month 27.554550 with respect to the perigee (precesses in 3232.6054 days = 8.850578 years)
Draconic month the time from ascending node to ascending node 27.212221

Moon Orbits
Source: https://en.wikipedia.org/wiki/Orbit_of_the_Moon#/media/File:Earth-Moon.PNG

Moon Orbits
Source: https://en.wikipedia.org/wiki/Orbit_of_the_Moon#/media/File:Lunar_perturbation.jpg

Moon Orbits
Source: https://en.wikipedia.org/wiki/Orbit_of_the_Moon#/media/File:Moon_apsidal_precession.png