How a birth chart app finds where the planets were, using NASA data
A Vedic birth chart starts with one question: at the moment and place you were born, where was each planet in the sky? Everything else, the rasi, the nakshatra, the dasha periods, is worked out from those positions.
Many astrology websites never say how they answer that question. When we built Jyohiri, we wanted it to show its working. This post explains where the positions come from and how they turn into a chart, without needing any maths background.
The data: NASA's planetary ephemeris
An ephemeris is a table of where the planets are at different times. The most accurate ones in the world are made by NASA's Jet Propulsion Laboratory (JPL), which needs them to steer spacecraft. A probe flying to Jupiter has to know where Jupiter will be years in advance, to within a few kilometres.
JPL publishes these tables for free. Jyohiri uses a version called DE440s. It is a single file of about 32 MB that covers roughly the years 1850 to 2150, which comfortably includes anyone alive today and their grandparents.
The file doesn't store a position for every minute; that would be enormous. Instead it splits time into blocks of a few days to a few weeks, and for each block and each planet it stores a short list of numbers that describe a smooth curve. To find Mars at 6:42 a.m. on a given day, Jyohiri finds the right block and evaluates that curve at that exact moment. The result is Mars's position in space, in kilometres, relative to the centre of the solar system.
From "where in space" to "where in your sky"
A position in space isn't a chart yet. A few corrections turn it into what an observer on Earth would actually see:
- Look from Earth, not the Sun. The file gives positions from the solar system's centre. We subtract Earth's position to get the direction from Earth.
- Allow for the travel time of light. Light from Jupiter takes over half an hour to reach us, so we see Jupiter where it was half an hour ago. The calculation steps back in time by the light travel time.
- Allow for Earth's own motion. Earth moves fast around the Sun, which shifts the apparent direction of everything slightly, a bit like rain looking slanted when you run through it.
- Convert to positions along the zodiac. Finally the direction is turned into an angle along the band of sky the planets travel through, measured in degrees from 0 to 360.
At this point we have each planet's position the way Western astronomy measures it: from the spring equinox point.
The ayanamsa: why Vedic charts differ from Western ones
The spring equinox point slowly drifts backwards against the stars, about one degree every 72 years, because Earth wobbles on its axis like a slowing spinning top. Western astrology measures from the moving equinox. Vedic astrology measures from the fixed stars.
The gap between the two is called the ayanamsa. Today it is about 24 degrees. Jyohiri subtracts it from every position to get the sidereal (star-based) positions that Vedic astrology uses.
There are several ways to define the exact ayanamsa. Jyohiri uses Lahiri, the one adopted by the Indian government's calendar reform committee and used by most Indian almanacs (panchangams). Other systems differ from Lahiri by less than a degree, but less than a degree is enough to move a planet into the next rasi if it sits near a border.
From degrees to a chart
With sidereal positions, the rest is division:
- Rasi. The 360 degrees are split into 12 rasis of 30 degrees each. A planet at 47 degrees is 17 degrees into the second rasi, Vrishabha.
- Nakshatra. The same circle is split into 27 nakshatras of 13°20′ each, and each nakshatra into four padas. Your birth star is the nakshatra the Moon was in.
- Dasha periods. The Vimshottari dasha sequence starts from the Moon's nakshatra, and how far the Moon had travelled through it decides how much of the first period was left at birth.
- Lagna (ascendant). This needs the time and the place of birth: it is the rasi rising on the eastern horizon at that moment, which is why a birth time that is off by even ten minutes can change it.
Why two almanacs can disagree by a day
People sometimes compare our transit dates, such as the day Jupiter moves into a new rasi, with a printed panchangam and find a one-day difference. That usually isn't an error on either side. The common reasons are:
- A different ayanamsa. Half a degree of difference means Jupiter, which moves slowly, crosses the border on a different day.
- Time zones and day boundaries. If a planet changes rasi at 11:40 p.m. in India, it has already happened on the next date in some other countries.
- Older calculation methods. Some almanacs still use traditional formulas instead of modern astronomical data. They are close, but not identical.
This is why Jyohiri shows a short note next to transit dates, and why it shows the calculation steps for every chart. If you want to check our work, you can.
Why this matters
Astrology is a matter of belief, and we don't ask anyone to share it. But if an app is going to tell you where the Moon was when you were born, it should get the astronomy right and be honest about where its numbers come from. The space agency's data is free, accurate and open. Using it is the least we could do.