parashar21

Casting, storing and retrieving detailed horoscope charts based on Hindu astrology

View on GitHub

parashar21 banner

Why Parashar21?

Tycho Brahe and his sister Sophia made thousands of observations of the positions of planets over many years and meticulously recorded this data in a vast database. This data was used by Kepler to formulate the Laws of Planetary motion. That in turn led to Newton’s laws of gravitation and the emergence of European science in the eighteenth century. Hence the database created by Tycho and Sophia is the start of the journey from ancient magic to modern science. Today, the same laws can be deduced very easily and quickly from NASA data on planetary positions.

Hindu astrology is based on revelations that Sage Parashar experienced and recorded in the Brihat Parashara Hora Shastra. But if we want to introduce analytical rigour in Hindu astrology and come out with some clear and umbiguous rules, we need a similar database of searchable horoscope charts. Unfortunately, no such database exists because there is no known way to store horoscope chart data efficiently. Parashar21 aspires to create a mechanism to plug this gap.

What is Parashar21?

Parashar21 is a design or strategy, along with a collection of programs, to store horoscope chart data as a high dimensional, but non-relational data model, so that charts that meet certain criteria can be retrieved easily.

What Parashar21 is not!

Parashar21 is not a prediction engine. There is no attempt to interpret horoscope charts.

Overview

workflow

WARNING

Because of a recent change in the MongoDB installation process, there is a problem with MongoDB installation process Some notebooks have been fixed with a temporary patch. Others will be fixed as we discover better solutions Sorry for the inconvenience

End of WARNING

Sample Programs

How to run sample programs

There are two key programs (or notebooks) that can be used with minimal effort. P21_45_10_MultiChart_Analysis Demonstrates the core functionality of the Parashar21 project in terms of working with a set of simple natal data and for each, casting the horoscope, converting the horoscope into a JSON file, storing it in a local MongoDB database and then retrieving selective horoscopes based on patterns and printing the same. The other notebook P21_45_09_Single_AshtakVarga_Gochar performs a more detailed analysis of a single chart and demonstrates the full cycle of reading birth data from a CSV file, converting it first to a basic horoscope using Swiss Ephemeris modules, enhancing the basic horoscope with Bhavs, Lords, Status (Exalted, Debilitated, Benefic, Malefic & etc.), Aspects and Conjuncts, storing it in a MongoDB database and then retrieving charts that meet certain specifications. In addition, it shows ending dates of Vimsottari Mahadasha and AshtakVarga points
What is more interesting is that this same notebook P21_45_09_Single_AshtakVarga_Gochar, creates a second, Gochar chart for the individual using the natal Moon longitude as the gochar Lagna longitude to generate the chart of a dummy person called Gochar and calculates Bhav data using the Moon-based Rashi as the first bhav. This report also shows the ending dates of the Vimsottari Antardashas and the current and subsequent Mahadasha

A sample report for Actress & Dancer Rekha, is available in PDF format while this MS-Word file explains the structure of the report.

Finally, planetary transits are tracked in P21_45_08_TransitTracker - Here the Swiss Ephemeris software is used to track changes in the position of planets and also their retrograde status over the next couple of days. This can be printed out as text, or – this is the fun part – can be seen as a video of planetary ‘movement’ along with simple audio. A sample video is available in my Yantrajaal Blog

The codes are written in Python 3+ and packaged as Google Colab Notebooks. The only software needed to run them is a modern browser, similar to Google Chrome. Nothing needs to downloaded or installed. In case the charts need to stored persistently, then a MongoDB database needs to be made available on a remote hosting service along with the MongoDB login credentials. However, both the P21_45_10_MultiChart_Analysis and the P21_45_09_Single_AshtakVarga_Gochar notebooks can be executed with a local MongoDB database that is installed on-the-fly in the Google Colab Virtual Machine. To execute the code, one needs to press the blue “Open in Colab” button to initiate the VM and then execute the code cells in a top to bottom sequence. Reports are generated as MS-Word documents and stored on the Colab VM. They need to be downloaded to a local machine for viewing.

Additional Codes

The horoscope chart data in a MongoDB database can be accessed in an interactive way using a MERN (MongoDB, Express, React, Node) application to retrieve and disiplay charts. Codes for this are available in the Khona21 repository

Further information

The philosophy that drives this enterprise is articulated in the article Astrology - an application of Data Science
A preprint of the paper describing technical aspects is available at Efficient storage and retrieval of horoscope data on a computer system. A case study using Python and MongoDB
More technical information is available in the project wiki
For a history of this project, visit the Parashar21 Blog