Skip to main content

Python Space Physics Environment Data Analysis

Project description

License Python PyPi Format Wheel Status Downloads ScrutinizerBuild ScrutinizerQuality Commits Issues Readthedocs Gitter

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

Instalation

The package pyrfu has been tested only for Mac OS. pyrfu requires FFTW3 . Install FFTW3 using homebrew and set temporary environmental variables, such that pyrfu finds fftw:

brew install fftw
export DYLD_LIBRARY_PATH=/usr/local/lib
export LDFLAGS="-L/usr/local/lib"
export CFLAGS="-I/usr/local/include"

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 pyrfu
  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 MMS mission

from pyrfu import mms

To import plotting functions

from pyrfu import plot as pltrf

Configuration

Configuration settings are set in the CONFIG hash table in the mms_config.py file.

Credits

This software was developped 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.0.tar.gz (132.2 kB view details)

Uploaded Source

Built Distribution

pyrfu-2.3.0-py3-none-any.whl (226.3 kB view details)

Uploaded Python 3

File details

Details for the file pyrfu-2.3.0.tar.gz.

File metadata

  • Download URL: pyrfu-2.3.0.tar.gz
  • Upload date:
  • Size: 132.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for pyrfu-2.3.0.tar.gz
Algorithm Hash digest
SHA256 a4b6c9c40d516d396a0e0acabf581489775f442ae14ef4b715a2abea6cf61169
MD5 6e31d8fc78878c62edd82c19b9d24b2b
BLAKE2b-256 635aef3fe26efeea11f32d51f4a157be1590b3d48c4879e2262ad417612dbef9

See more details on using hashes here.

Provenance

File details

Details for the file pyrfu-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: pyrfu-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 226.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for pyrfu-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c632958b84110689c77d36a56ee523c6cbebd5cbd113ed69b13513c4d04985ea
MD5 738b8a2f569e25f2c8df065927739df1
BLAKE2b-256 1e1a87e55342ce93788c501e9bcd981dcd891fdb1d09af6eb8a104286318213b

See more details on using hashes here.

Provenance

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