Guest User

Akitu Calculator

a guest
Feb 17th, 2023
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.74 KB | Source Code | 0 0
  1. #𒀭𒈹𒍠𒊩
  2.  
  3. #[AKITU FINDER]
  4. #BY SHALASU-INANA
  5.  
  6. #Python tool for calculating the astronomical dates for Akitu, based on my frustrations calculating it by hand.
  7. #Date is based on the traditional timing; the first new moon after each equinox.
  8.  
  9. #REQUIRED:
  10. #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.
  11.  
  12. import ephem
  13. import datetime
  14.  
  15. #The actual calculation
  16. now = datetime.datetime.now()
  17. vernal = ephem.next_vernal_equinox(now)
  18. autumnal = ephem.next_autumnal_equinox(now)
  19. nm_v = ephem.next_new_moon(vernal)
  20. nm_a = ephem.next_new_moon(autumnal)
  21.  
  22. #Print the dates
  23. print("Vernal Akitu: "+str(nm_v))
  24. print("Autumnal Akitu: "+str(nm_a))
Advertisement
Add Comment
Please, Sign In to add comment