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.2

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.2.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

pyspedas-0.2.2-py2.py3-none-any.whl (7.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for pyspedas-0.2.2.tar.gz
Algorithm Hash digest
SHA256 5cf9c4eadd24af982ab036213d679b576502f9a4f01c94cc185038a9bfdb505d
MD5 cd27f8108f299ef4708686b2b464c38e
BLAKE2b-256 2e048ae42fe3276a486b541b0e56d6c785aec572df7691b3deb64e34712af0cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyspedas-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ed5d87249eab052a514a2e6c18c9e80475ef4ea047196428a6a7b57350694f82
MD5 2e44a2676fd934372b25002d4bdc6c4f
BLAKE2b-256 349a4a256ed861e3e75a4c6f9892a63033675a155cb172e6370c1ec84bbf5aa8

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