Getting Started with pySPEDAS: Difference between revisions

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


<pre>
<pre>
from pyspedas.examples.basic.ex_basic import ex_basic
import pyspedas
 
pyspedas.version()
ex_basic()
</pre>
</pre>


Some cdf files will be downloaded and a plot will appear.
The installed version of pyspedas should appear.




Line 36: Line 35:


<pre>pip install pyspedas</pre>
<pre>pip install pyspedas</pre>


== Comparison of pySPEDAS vs SPEDAS ==
== Comparison of pySPEDAS vs SPEDAS ==

Revision as of 22:36, 1 May 2020

Welcome to pySPEDAS

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


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


You can also install pyspedas using pip:

pip install pyspedas

Comparison of pySPEDAS vs SPEDAS

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