This is program that prepares a chart similar to Sky & Telescope's annual Skygazer's Almanac.
The code is written in Python. It uses PyX for preparing the PDF output, PyEphem for astronomical calculations, and SciPy for a simple root-finding calculation. PyEphem uses routines from XEphem.
You can copy, modify and distribute the code under the terms of the GNU General Public License. See the file COPYING for more details. You can also freely distribute the end product, the chart itself. If you want to give a reference to the tool creating the chart, you can use the URL https://github.com/atakan/PySkyAlmanac
This is in development stage and certainly has bugs. In addition, the code is for Ankara and 2012. I tried to make it easy to adapt to different locations and years; in particular, the comments and the function names are in English. If you plan to port it to a different locale (location, timeframe, language etc.) please let me know. I would be more than happy to help out.
Keywords: Sky almanac -- celestial events
Atakan Gürkan ato.gurkan@gmail.com
##Install Dependencies
- PyEphem -
pip install pyephem
- PyX - If using Python2, need older version of PyX like 0.12.1. Python3, can use current stable release. Download tarball and run
python ./setup.py install
. - SciPy - Install full stack with
apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose
. See here.
##Instructions
See local_info.py
to see options for setting your location. You only have to change the obs_city
field. That is, obs_city = 'San Francisco'
. It is of course possible your city isn't listed, so in that case switch the manually_set
flag to True
and fill in your latitude, longitude, year, and timezone.
Turkish, English and Chinese languages are supported. In translations.py
change t=tr
to either en
or ch
.