Skip to main content

poliastro - Python package for Orbital Mechanics

Project description

poliastro logo
Name:

poliastro

Website:

https://poliastro.github.io/

Author:

Juan Luis Cano Rodríguez <juanlu001@gmail.com>

Version:

0.4.3

https://codecov.io/github/poliastro/poliastro/coverage.svg?branch=0.4.x https://img.shields.io/badge/license-MIT-blue.svg https://zenodo.org/badge/12813/poliastro/poliastro.svg

poliastro is an open source pure Python package dedicated to problems arising in Astrodynamics and Orbital Mechanics, such as orbit propagation, solution of the Lambert’s problem, conversion between position and velocity vectors and classical orbital elements and orbit plotting. It is released under the MIT license.

from poliastro.examples import molniya
from poliastro.plotting import plot

plot(molniya)
https://github.com/poliastro/poliastro/raw/0.4.x/examples/molniya.png

Requirements

poliastro requires the following Python packages:

  • NumPy, for basic numerical routines

  • Astropy, for physical units and time handling

  • numba (optional), for accelerating the code

  • jplephem, for the planetary ephemerides using SPICE kernels

  • matplotlib, for orbit plotting

  • SciPy, for root finding and numerical propagation

poliastro is usually tested on Linux, Windows and OS X on Python 2.7, 3.3, 3.4 and 3.5, using NumPy 1.9 and 1.10 (single codebase).

Platform

Site

Status

Linux-x64

Anaconda

anaconda

OS X-x64

Travis CI

travisci

Windows-x64

Appveyor

appveyor

Installation

The easiest and fastest way to get the package up and running is to install poliastro using conda:

$ conda install poliastro --channel poliastro

You can also install poliastro from PyPI using pip, given that you already have all the requirements:

$ pip install poliastro

You can also download poliastro source from GitHub and type:

$ python setup.py install

Development installations are also supported thanks to setuptools:

$ python setup.py develop

It is recommended that you never ever use sudo with distutils, pip, setuptools and friends in Linux because you might seriously break your system [1][2][3][4]. Options are per user directories, virtualenv or local installations.

Testing

If installed correctly, the tests can be run using py.test:

$ python -c "import poliastro; poliastro.test()"
Running unit tests for poliastro
[...]
OK
$

Contributing

Code writing

'Stories in Ready'

Code contributions are welcome! Just send a pull request and we’ll discuss it. In the wiki you can find some documents explaining the overall design of poliastro, and in the issue tracker you may find pending tasks waiting for someone to complete them.

Bug reporting

I am one of those that writes bug-free code every single time, but if you think you’ve found one please refer to the issue tracker on GitHub.

Citing

If you use poliastro on your project, please drop me a line.

You can also use the DOI to cite it in your publications. This is the latest one:

https://zenodo.org/badge/12813/poliastro/poliastro.svg

And this is an example citation format:

Juan Luis Cano Rodríguez et al.. (2015). poliastro: poliastro 0.4.0. Zenodo. 10.5281/zenodo.17462

License

poliastro is released under the MIT license, hence allowing commercial use of the library. Please refer to the COPYING file.

FAQ

What’s up with the name?

poliastro comes from Polimi, which is the shortened name of the Politecnico di Milano, the Italian university where I was studying while writing this software. It’s my tiny tribute to a place I came to love. Grazie mille!

What’s the future of the project?

Development efforts are shifting soon towards the new Python Astrodynamics Project, a joint effort between several developers. In the meanwhile, poliastro will see bug fixes and probably new releases in 2015 and 2016.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poliastro-0.4.3.tar.gz (664.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page