This repository has been archived by the owner on Oct 14, 2023. It is now read-only.
/
README
182 lines (127 loc) · 6.09 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
.. poliastro
.. image:: http://poliastro.github.io/_static/logo_text.png
:target: http://poliastro.github.io/
:alt: poliastro logo
:width: 675px
:align: center
:Name: poliastro
:Website: https://poliastro.github.io/
:Author: Juan Luis Cano Rodríguez <juanlu001@gmail.com>
:Version: 0.4.2
.. image:: https://codecov.io/github/poliastro/poliastro/coverage.svg?branch=0.4.x
:target: https://codecov.io/github/poliastro/poliastro?branch=0.4.x
.. image:: https://img.shields.io/badge/license-MIT-blue.svg
:target: https://github.com/poliastro/poliastro/raw/0.4.x/COPYING
.. image:: https://zenodo.org/badge/12813/poliastro/poliastro.svg
:target: https://zenodo.org/badge/latestdoi/12813/poliastro/poliastro
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.
.. code-block:: python
from poliastro.examples import molniya
from poliastro.plotting import plot
plot(molniya)
.. image:: https://github.com/poliastro/poliastro/raw/0.4.x/examples/molniya.png
:align: center
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|
============== ============ ===================
.. |anaconda| image:: https://anaconda.org/poliastro/poliastro/badges/build.svg
:target: https://anaconda.org/poliastro/poliastro/builds
.. |travisci| image:: https://travis-ci.org/poliastro/poliastro.svg?branch=0.4.x
:target: https://travis-ci.org/poliastro/poliastro
.. |appveyor| image:: https://ci.appveyor.com/api/projects/status/ajg5j8byv8isslso/branch/0.4.x?svg=true
:target: https://ci.appveyor.com/project/poliastro/poliastro/branch/0.4.x
Installation
============
The easiest and fastest way to get the package up and running is to
install poliastro using `conda <http://conda.io>`_::
$ 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
.. _`install poliastro from PyPI`: https://pypi.python.org/pypi/poliastro/
.. _`download poliastro source from GitHub`: http://github.com/poliastro/poliastro
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`_.
.. _1: http://wiki.python.org/moin/CheeseShopTutorial#Distutils_Installation
.. _2: http://stackoverflow.com/questions/4314376/how-can-i-install-a-python-egg-file/4314446#comment4690673_4314446
.. _3: http://workaround.org/easy-install-debian
.. _4: http://matplotlib.1069221.n5.nabble.com/Why-is-pip-not-mentioned-in-the-Installation-Documentation-tp39779p39812.html
.. _`per user directories`: http://stackoverflow.com/a/7143496/554319
.. _`virtualenv`: http://pypi.python.org/pypi/virtualenv
.. _`local installations`: http://stackoverflow.com/a/4325047/554319
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
------------
.. image:: https://badge.waffle.io/poliastro/poliastro.png?label=Ready
:target: https://waffle.io/poliastro/poliastro
:alt: '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.
.. _`wiki`: https://github.com/poliastro/poliastro/wiki
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.
.. _`issue tracker`: https://github.com/poliastro/poliastro/issues
Citing
======
If you use poliastro on your project, please
`drop me a line <mailto:juanlu001@gmail.com>`_.
You can also use the DOI to cite it in your publications. This is the latest
one:
.. image:: https://zenodo.org/badge/12813/poliastro/poliastro.svg
:target: https://zenodo.org/badge/latestdoi/12813/poliastro/poliastro
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 <https://github.com/python-astrodynamics/astrodynamics>`_,
a joint effort between several developers. In the meanwhile, poliastro will
see bug fixes and probably new releases in 2015 and 2016.