'Madrigal instrument support for the pysat ecosystem'
Project description
pysatMadrigal
pysatMadrigal allows users to import data from the Madrigal database into pysat (pysat documentation).
Installation
The following instructions provide a guide for installing pysatMadrigal and give some examples on how to use the routines.
Prerequisites
pysatMadrigal uses common Python modules, as well as modules developed by and for the Space Physics community. This module officially supports Python 3.7+.
Common modules | Community modules |
---|---|
h5py | madrigalWeb |
numpy | pysat >= 3.0.0 |
pandas | |
xarray |
PyPi Installation
pip install pysatMadrigal
GitHub Installation
git clone https://github.com/pysat/pysatMadrigal.git
Change directories into the repository folder and run the setup.py file. For a local install use the "--user" flag after "install".
cd pysatMadrigal/
python setup.py install
Note: pre-0.1.0 version
pysatMadrigal is currently provided as an alpha pre-release. Feedback and contributions are appreciated.
Examples
The instrument modules are portable and designed to be run like any pysat instrument.
import pysat
from pysatMadrigal.instruments import dmsp_ivm
ivm = pysat.Instrument(inst_module=dmsp_ivm, tag='utd', inst_id='f15')
Another way to use the instruments in an external repository is to register the
instruments. This only needs to be done the first time you load an instrument.
Afterward, pysat will identify them using the platform
and name
keywords.
pysat.utils.registry.register('pysatMadrigal.instruments.dmsp_ivm')
dst = pysat.Instrument('dmsp', 'ivm', tag='utd', inst_id='f15')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pysatMadrigal-0.0.4.tar.gz
.
File metadata
- Download URL: pysatMadrigal-0.0.4.tar.gz
- Upload date:
- Size: 36.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d9342ef237073bb9ce330dcefad9184fdd26800a3128d32a9e5dffd312089dd |
|
MD5 | 3b680ab5d771d37c09bc0bf98e813904 |
|
BLAKE2b-256 | 24975c7ce0eced9b7529595cd8f7f5e6d7c859f9917f19075b468e7f72fa8b6f |