Python implementation of Jean Meeus astronomical routines
Library of astronomical algorithms in Python.
PyMeeus is a Python implementation of the astronomical algorithms described in the classical book ‘Astronomical Algorithms, 2nd Edition, Willmann-Bell Inc. (1998)’ by Jean Meeus.
There are great astronomical libraries out there. For instance, if you’re looking for high precision and speed you should take a look at libnova. For a set of python modules aimed at professional astronomers, you should look at Astropy. On the other hand, the advantages of PyMeeus are its simplicity, ease of use, ease of reading, ease of installation (it has the minimum amount of dependencies) and abundant documentation.
The easiest way of installing PyMeeus is using pip:
pip install pymeeus
Or, for a per-user installation:
pip install --user pymeeus
If you prefer Python3, you can use:
pip3 install --user pymeeus
If you have PyMeeus already installed, but want to upgrade to the latest version:
pip3 install -U pymeeus
Author: Dagoberto Salazar
Distributed under the GNU Lesser General Public License v3 (LGPLv3). See LICENSE.txt and COPYING.LESSER for more information.
If you have Sphinx installed, you can generate your own, latest documentation going to directory ‘docs’ and issuing:
Then the HTML documentation pages can be found in ‘build/html’.
The preferred method to contribute is through forking and pull requests:
- Fork it (https://github.com/architest/pymeeus/fork)
- Create your feature branch (git checkout -b feature/fooBar)
- Commit your changes (git commit -am 'Add some fooBar')
- Push to the branch (git push origin feature/fooBar)
- Create a new Pull Request
Additionally, PyMeeus makes heavy use of automatic tests. As a general rule, every function or method added must have a corresponding test in the proper place in tests directory.
Finally, documentation is also a big thing here. Add proper and abundant documentation to your new code. This also includes in-line comments!!!.
- Neil Freeman - Fixed undefined variable in Epoch.tt2ut
- molsen234 - Fixed bug when using fractional seconds, minutes, hours or days
- Sebastian Veigl - Added functionality for Jupiter’s moons
- Sophie Scholz - Added functionality for Jupiter’s moons
- Vittorio Serra - Added functionality for Jupiter’s moons
- Michael Lutz - Added functionality for Jupiter’s moons
- Ben Dilday - Added __hash__() method to class Epoch
- Added parameter local to the Epoch class constructor and the methods get_date() and get_full_date().
- Added methods moon_librations() and moon_position_angle_axis().
- Added method moon_maximum_declination().
- Fixed several bugs in Epoch class, and added method doy().
- Added method moon_passage_nodes().
- Added method moon_perigee_apogee().
- Added method moon_phase().
- Added methods illuminated_fraction_disk() and position_bright_limb() to Moon class.
- Fixed error in the return type of method Sun.equation_of_time().
- Added methods to compute the Moon’s longitude of ascending node and perigee.
- Changes in the organization of the documentation.
- Added Moon class and position() methods.
- Added method ring_parameters() to Saturn class.
- Added method __hash__() to Epoch. Now Epoch objects can be used as keys in a dictionary.
- Added funtionality to compute the positions of Jupiter’s Galilean moons.
- Added methods to compute Saturn’s ring inclination and longitude of ascending node.
- Additional encoding changes.
- Deleted encoding keyword from setup.py, which was giving problems.
- Added encoding specification to setup.py.
- Fixed characters with the wrong encoding.
- Relaxed requirements, added contributor molsen234, and fixed format problems showed by flake8.
- Fixed undefined variable in Epoch.tt2ut.
- Fix bug when using fractional seconds, minutes, hours or days, plus documentation improvements.
- Add method to compute rising and setting times of the Sun.
- Add method magnitude() to planet classes.
- Add method to compute the parallax correction to Earth class.
- Add methods to compute the passage through the nodes.
- Add methods to compute the perihelion and aphelion of all planets.
- Fix errors in the elongation computation, add tests and examples of use of methods geocentric_position(), and tests and examples for Pluto class.
- Added Pluto class.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.