If you want to follow the examples on your own laptop, you need a working Python installation, including the Scientific Python software stack (NumPy/SciPy, Matplotlib, IPython, Pandas). In addition, you need to install the DRMS Python package, and if you want to clone the Git repository, you also need to install Git.
The recommended way of installing Python, is to use the Anaconda Python distribution, which is available for Windows, Mac and Linux. Just download the Python 3 version of the installer from the Anaconda download page and follow the instructions. After that you should have a working Python environment, including most of the commonly used scientific Python packages.
A good place to start out with the scientific use of Python is scipy.org. A very nice compilation of tutorials can be found in the SciPy Lecture Notes.
Install the DRMS Python package using the shell command
pip install drms
Make sure that you activated your Anaconda environment before you enter command above in your terminal, or put the Anaconda directory in your PATH
. Feel free to contact me, if you have any problems, or ask somebody who attended the recent Python workshop (they should know how it works :o)).
The documentation for the drms
module is available on Read the Docs, which also includes a detailed tutorial. In addition, there are many example scripts in the examples
directory of the source code package of the drms
module. Finally there is also a HMI Science Nugget on the DRMS Python package.
To be able to make data export requests from JSOC, you need to register your email address on the JSOC email registration webpage. Just enter your email address in the "Notify" field and press the button below (the "Requester" field can be left empty). After that you should receive an email which you just need to reply to, in order to finalize the registration.
If you want to use Git, you can download and install it from the Git download page. If you never used Git before, you can learn more by following the Software Carpentry Git Tutorial.
Using Git is not necessary (but recommended) for this workshop. If you really don't want to use Git, you can click on the green "Clone or download" button and select "Download ZIP". Keep in mind that you cannot easily pull any updates this way, nor track your own changes.
SunPy is not needed for this tutorial. If you are interested in using it, you can have a look at material of the recent Python/SunPy workshop that took place at KIS in February.
- Clone the Git repository from Github:
git clone https://github.com/kbg/drms-workshop.git
- Change to the
drms-workshop
directory and start Jupyter:
cd drms-workshop
jupyter notebook
- Open the
index.ipynb
from the file list in your webbrowser.