2. Installation

planetMagFields can be installed in a few different ways:

2.1. Using pip

This is probably the easiest way. planetMagFields is available on PyPI and can be installed with

$ python3 -m pip install planetMagFields

2.2. Using setup.py

You can also use setup.py to install planetMagFields:

$ git clone https://github.com/AnkitBarik/planetMagFields
$ cd planetMagFields
$ python3 setup.py install --user

Or using pip:

$ git clone https://github.com/AnkitBarik/planetMagFields
$ cd planetMagFields
$ python3 -m pip install . --user

2.3. Using PYTHONPATH

Download the package from the GitHub repository and it to PYTHONPATH:

$ git clone https://github.com/AnkitBarik/planetMagFields
$ export PYTHONPATH=$PYTHONPATH:/path/to/planetMagFields