Python Space Physics Environment Data Analysis
Project description
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:
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
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
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:
astropy >=4.0.0
cycler >=0.10.0
cdflib >=0.3.20
cython >=0.29.21
matplotlib >=3.2.1
numba >=0.52.0
numpy >=1.18.1
Pillow >=7.1.0
pandas >=1.0.3
pyfftw >=0.12.0
python-dateutil >=2.8.1
requests >=2.23.0
Sphinx >=3.0.3
scipy >=1.4.1
seaborn >=0.10.1
setuptools >=47.3.1
sfs >=0.5.0
tqdm >=4.46.0
xarray >=0.15.0
Testing dependencies are:
pytest >= 2.8
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
Built Distribution
File details
Details for the file pyrfu-2.1.5.tar.gz
.
File metadata
- Download URL: pyrfu-2.1.5.tar.gz
- Upload date:
- Size: 116.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 219a33fb964ba01ee1c748ee9d4f2f6de69090cc42b017500b193783412dfa38 |
|
MD5 | e137f39e8a64e094715a011a01555d47 |
|
BLAKE2b-256 | cb08709a45a4e33bd0549b6a72488bd67d4a076e78fa53c14a0708b312c50e6a |
Provenance
File details
Details for the file pyrfu-2.1.5-py3-none-any.whl
.
File metadata
- Download URL: pyrfu-2.1.5-py3-none-any.whl
- Upload date:
- Size: 206.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec19fa28da383f5d6882e08f7c7c347e993f35f6492c330cccf06753552ea2d3 |
|
MD5 | 154fde83daf310e5da064f918066b817 |
|
BLAKE2b-256 | 502f86bc7fdc6b8a3b253100d1410c3db9dff57892d18f30c42cc8d4c2bcfba3 |