Getting Started with pySPEDAS: Difference between revisions

From SPEDAS Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:


* [https://github.com/spedas/pyspedas github source code]
* [https://github.com/spedas/pyspedas github source code]
* [https://github.com/spedas/pyspedas_examples github source code for pyspedas_examples]
* [https://pypi.org/project/pyspedas/ pip release]
* [https://pypi.org/project/pyspedas/ pip release]
* [https://anaconda.org/spedas/pyspedas conda release]
* [https://anaconda.org/spedas/pyspedas conda release]
Line 40: Line 39:


<pre>pip install pyspedas</pre>
<pre>pip install pyspedas</pre>
== Examples ==
There are two projects that contain examples of using pyspedas:
* [https://github.com/spedas/mms-examples github source code for mms-examples]
* [https://github.com/spedas/pyspedas_examples github source code for pyspedas_examples]
These can be installed using conda or pip:
<pre>
conda install -c spedas pyspedas_examples
</pre>
or
<pre>
pip install pyspedas_examples
</pre>




== Comparison of pySPEDAS to SPEDAS ==
== Comparison of pySPEDAS to SPEDAS ==


Some examples that demonstrate how to achieve the same results using either IDL SPEDAS or python pySPEDAS.
Some examples that demonstrate how to achieve the same results using either IDL SPEDAS or python pySPEDAS.

Revision as of 17:41, 4 May 2020

Welcome to pySPEDAS

pySPEDAS is the SPEDAS software in the python programming language. It is currently in development (beta).

Examples and tutorials can be found in the companion projects: pyspedas_examples mms_examples


pySPEDAS releases


Install pySPEDAS

An easy way to install pyspedas is to install the latest Anaconda distribution:


Then, open the anaconda prompt and type:

conda install -c spedas pyspedas

This will install all required files. To test the installation, you can open a command prompt, type 'python' to start the python interpreter and then type:

import pyspedas
pyspedas.version()

The installed version of pyspedas should be printed.


You can also install pyspedas using pip:

pip install pyspedas


Examples

There are two projects that contain examples of using pyspedas:


These can be installed using conda or pip:

conda install -c spedas pyspedas_examples

or

pip install pyspedas_examples


Comparison of pySPEDAS to SPEDAS

Some examples that demonstrate how to achieve the same results using either IDL SPEDAS or python pySPEDAS.