Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #𒀭𒈹𒍠𒊩
- #[AKITU FINDER]
- #BY SHALASU-INANA
- #Python tool for calculating the astronomical dates for Akitu, based on my frustrations calculating it by hand.
- #Date is based on the traditional timing; the first new moon after each equinox.
- #REQUIRED:
- #To run you will need to install both Python and ephem in the command line (pip install ephem), before running the program in the Python shell.
- import ephem
- import datetime
- #The actual calculation
- now = datetime.datetime.now()
- vernal = ephem.next_vernal_equinox(now)
- autumnal = ephem.next_autumnal_equinox(now)
- nm_v = ephem.next_new_moon(vernal)
- nm_a = ephem.next_new_moon(autumnal)
- #Print the dates
- print("Vernal Akitu: "+str(nm_v))
- print("Autumnal Akitu: "+str(nm_a))
Advertisement
Add Comment
Please, Sign In to add comment