Skip to main content

Python Space Physics (RymdFysik) Utilities

Project description

License Python PyPi Format Wheel Status Downloads Flake8 PyLintB Issues Commits Readthedocs Gitter Black

The Python package pyrfu is a software based on the IRFU-MATLAB library to work with space data, particularly the Magnetospheric MultiScale (MMS) mission.

It is distributed under the open-source MIT license.

Full documentation can be found here

Installation

The package pyrfu has been tested only for Mac OS.

Using PyPi

pyrfu is available for pip.

pip install pyrfu

From sources

The sources are located on GitHub:

https://github.com/louis-richard/irfu-python

  1. Clone the GitHub repo:

Open a terminal and write the below command to clone in your PC the pyrfu repo:

git clone https://github.com/louis-richard/irfu-python.git
cd irfu-python
  1. Create a virtual env

pyrfu needs a significant number of dependencies. The easiest way to get everything installed is to use a virtual environment.

  • Anaconda

You can create a virtual environment and install all the dependencies using conda with the following commands:

pip install conda
conda create -n pyrfu
source activate pyrfu
  • Virtual Env

Virtualenv can also be used:

pip install virtualenv
virtualenv pyrfu
source pyrfu/bin/activate
  1. Install the package via the commands:

python setup.py install

5) (Optional) Generate the docs: install the extra dependencies of doc and run the setup.py file:

pip install pyrfu
python setup.py build_sphinx

Once installed, the doc can be generated with:

cd doc
make html

Dependencies

The required dependencies are:

Testing dependencies are:

Extra testing dependencies:

Usage

To import generic space plasma physics functions

from pyrfu import pyrf

To import functions specific to Magnetospheric Multi-Scale (MMS)

from pyrfu import mms

To import functions specific to Solar Orbiter (SolO)

from pyrfu import solo

To import plotting functions

from pyrfu import plot

Configuration

Default configuration settings for MMS data (i.e data path) are stored in pyrfu/mms/config.json and can be changed at anytime using mms.db_init(local_path_dir).

Credits

This software was developed by Louis RICHARD (louisr@irfu.se) based on the IRFU-MATLAB library.

Acknowledgement

Please use the following to acknowledge use of pyrfu in your publications: Data analysis was performed using the pyrfu analysis package available at https://github.com/louis-richard/irfu-python

Additional Information

MMS Science Data Center: https://lasp.colorado.edu/mms/sdc/public/

MMS Datasets: https://lasp.colorado.edu/mms/sdc/public/datasets/

MMS - Goddard Space Flight Center: http://mms.gsfc.nasa.gov/

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

pyrfu-2.3.28.tar.gz (9.0 MB view hashes)

Uploaded Source

Built Distribution

pyrfu-2.3.28-py3-none-any.whl (359.4 kB view hashes)

Uploaded Python 3

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