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
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!!!.
- 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
- Added conjunction and opposition methods for Jupiter, Saturn, Uranus and Neptune
- Added ‘geocentric_position()’ method to ‘Minor’ class, and added conjunction and opposition methods for Mercury, Venus and Mars.
- Added class ‘Minor’, as well as functions to compute velocity of an object and length of an orbit
- Added methods ‘geocentric_position()’ to all the planets
- Added function ‘kepler_equation()’ to ‘Coordinates’ module, and ‘orbital_elements’ methods to classes ‘Mercury’, ‘Venus’, ‘Earth’, ‘Mars’, ‘Jupiter’, ‘Saturn’, ‘Uranus’ and ‘Neptune’
- Added classes ‘Uranus’ and ‘Neptune’, plus additional functions in Coordinates module’
- Added classes ‘Jupiter’ and ‘Saturn’
- Minor bug fixing, added methods ‘ephemeris_physical_observations()’ and ‘beginning_synodic_rotation()’, and added classes ‘Mercury’ and ‘Mars’
- Added the complete list of VSOP87 parameters to Venus, method to compute dates of equinoxes and solstices, and the Equation of Time
- Added heliocentric position method for J2000.0 (Earth) and rectangular coordinates methods (Sun)
- Added Venus module and VSOP87-based positioning methods
- Added Sun module
- Added functions to compute if three objects are in a straight line, and the smallest diameter of a circle containing them.
- Added functions to compute relative position angles and conjunctions
- Added functions to compute angular separation to Coordinates module
- Added functions to compute atmospheric refraction to Coordinates module
- Added function ‘times_rise_transit_set()’ to Coordinates module
- Added functions for parallactic angle, ecliptic points in the horizon, angle between north celestial pole and north pole of the ecliptic, and diurnal path vs. the horizon at time of rising or setting
- Added several conversion functions to Coordinates module
- Added Coordinates module
- Added precession and proper motion methods, and changed handling of Epoch class
- Added methods related to nutation corrections
- Earth class added
- Significant documentation improvements
- Epoch class finished
- Epoch class added
- CurveFitting class added
- Interpolation class added
- Angle class finished
- Removed unnecessary dependencies
- Documentation improvements
- Initial commit
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size PyMeeus-0.3.7.tar.gz (732.3 kB)||File type Source||Python version None||Upload date||Hashes View|