Skip to main content

Package for SPEDAS data loading modules

Project description

pyspedas

Load data from SPEDAS CDF files into pytplot.

Pyspedas is a python package that contains data loading modules for various scientific NASA missions.

The load routines are designed to work with the libraries cdflib, pytplot.

How It Works

CDF files are downloaded from the internet to the local machine. Local data directory is specified in the file spd_prefs_txt.py.

Install Python

You will need the Anaconda distribution of Python 3 in order to run pyspedas.

Anaconda comes with a suite of packages that are useful for data science.

You should also install git which makes installation of python packages easier.

Install pyspedas

To install pyspedas, use the command:

pip install git+https://github.com/nickssl/pyspedas

Running pyspedas

After installation, please change the file pyspedas\spd_prefs_txt.py and set data_dir=C:\Datapy\themis to a directory of your choice.

To download CDF files for the Themis mission, use:

pyspedas.load_data(mission, dates, probes, instruments, level, downloadonly)

Example:

d = pyspedas.load_data('themis', '2015-12-31', ['tha'], '*', 'l2', False)

Parameters:

  • mission = 'themis' the name of the mission, currently only 'themis' is available
  • dates = '2015-12-31' list of dates to be downloaded
  • probes = ['tha', 'tha'] list of probes ['tha', 'tha', 'thc', 'thd', 'the'], wildcard ('*') for all probes
  • instruments = ['fft'] list of instruments, wildcard ('*') for all instruments
  • level = 'l2' either 'l2' or 'l1'
  • downloadonly = True if True then CDF files are downloaded only, if False then they are also loaded into pytplot using pytplot.cdf_to_tplot

List of possible values for L2 themis "instruments" variable:

['efi', 'esa', 'fbk', 'fft', 'fgm', 'fit', 'gmom', 'mom', 'scm', 'sst']

List of possible values for L1 themis "instruments" variable:

['bau', 'eff', 'efp', 'efw', 'esa', 'fbk', 'fff_16', 'fff_32', 'fff_64', 'ffp_16', 'ffp_32', 'ffp_64', 'ffw_16', 'ffw_32', 'ffw_64', 'fgm', 'fit', 'hsk', 'mom', 'scf', 'scm', 'scmode', 'scp', 'scw', 'spin', 'sst', 'state', 'trg', 'vaf', 'vap', 'vaw']

Additional Information

For pytplot, see: https://github.com/MAVENSDC/PyTplot

For cdflib, see: https://github.com/MAVENSDC/cdflib

For SPEDAS, see http://spedas.org/blog/

For information on the Themis mission, see http://themis.ssl.berkeley.edu/

Project details


Release history Release notifications | RSS feed

This version

0.2.3

Download files

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

Source Distribution

pyspedas-0.2.3.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

pyspedas-0.2.3-py2.py3-none-any.whl (2.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyspedas-0.2.3.tar.gz.

File metadata

  • Download URL: pyspedas-0.2.3.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyspedas-0.2.3.tar.gz
Algorithm Hash digest
SHA256 6a9f9de6a0db40513fc15bc967f7d183f2ded8beebed111bf7eef0ce6e94a28b
MD5 50a9cc8aa43508f66a19d34ac1dd420d
BLAKE2b-256 9016b646ac61ee1df307cd2f2e1a2a146d5bb79c6531fcf0a1debe400f59929d

See more details on using hashes here.

File details

Details for the file pyspedas-0.2.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyspedas-0.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 933bfdf56685aef95cdb977c0dedb6f0231e2a3c5265cb437acd6c7f1a398cf6
MD5 eb9d35d5e48116933c17da52f525f93c
BLAKE2b-256 3aba958d7462dd9c79b25f8541e7eb9a06a2151cf1b873fa7278c849321f5f55

See more details on using hashes here.

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