Skip to content

Instantly share code, notes, and snippets.

@EH30
Last active August 24, 2023 13:10
Show Gist options
  • Save EH30/fe7022a25ac99f7a6e9c0393a36130b0 to your computer and use it in GitHub Desktop.
Save EH30/fe7022a25ac99f7a6e9c0393a36130b0 to your computer and use it in GitHub Desktop.
flatlib-sidereal ayan lahiri example code

Example

from flatlib.datetime import Datetime
from flatlib.geopos import GeoPos
from flatlib.chart import Chart, const

# Date: 2005-03-03 Time: 6:45 AM UTC: +5:30
date = Datetime([2005, 3, 3], ['+',6,45,0], "+05:30")
pos = GeoPos(19.0760, 72.8777)
print("lat: ", pos.lat, "lng: ", pos.lon)

chart = Chart(date, pos, mode=const.AY_LAHIRI)
print(chart.get(const.ASC))
# output: 
# lat:  19.076 lng:  72.8777
# <Asc Aquarius +13:56:50>

Installation

download flatlib_sidereal
run powershell as an Administrator and cd to the flatlib_sidereal folder.

python setup.py install

Download

https://github.com/flatangle/flatlib/tree/sidereal
or
https://github.com/EH30/flatlib_sidereal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment