Python Space Physics (RymdFysik) Utilities
Project description
pyRFU
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.
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 irfu-python
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:
cdflib >=0.3.20
matplotlib >=3.2.1
numba >=0.52.0
numpy >=1.18.1
pandas >=1.0.3
Sphinx >=3.0.3
scipy >=1.4.1
setuptools >=47.3.1
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
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 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.3.18.tar.gz
.
File metadata
- Download URL: pyrfu-2.3.18.tar.gz
- Upload date:
- Size: 9.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 183ca63d86b8e01e9c69d738078d3653bd3aa86b8467b7aef85b4b6e1b138ac4 |
|
MD5 | 6afe1f6491eaa18cf39fe2e2c83461e9 |
|
BLAKE2b-256 | 9a01c758facaef8901817984a38d389c82c14815041c8cc7e536c3489ae1bb0e |
Provenance
File details
Details for the file pyrfu-2.3.18-py3-none-any.whl
.
File metadata
- Download URL: pyrfu-2.3.18-py3-none-any.whl
- Upload date:
- Size: 324.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 308256bac020e04b6f86ff8a83e764591cf6d1b1bad72ab2fb100abbae808610 |
|
MD5 | 2b7c59bd3683a82d39734526aa168370 |
|
BLAKE2b-256 | 78cda6e6e4a7762f44e4afb129fd0837d229922d2fddecbb25bbad4c4397d00f |