SunPy: Python for Solar Physics Data Analysis

Share this:
Cite this:

Hughitt, Keith; Shih, Albert; Pérez-Suárez, David; Mayer, Florian; Ireland, Jack; Earnshaw, Mathew D.; Schwartz, Richard; Christe, Steven; Gallagher, Peter (2012): SunPy: Python for Solar Physics Data Analysis. figshare.
Retrieved 14:16, Nov 25, 2015 (GMT)


Python has seen widespread adoption among the scientific community in recent years resulting in a wide range of software being written for everything from numerical computation and machine learning to spectral analysis and visualization. SunPy is a free and open-source software library for working with solar and heliospheric datasets, written in the Python programming language. It provides an alternative to the IDL-based SolarSoft (SSW) solar data analysis environment.


SunPy has map objects that allow simple overplotting of data from multiple two-dimensional image FITS files; time-series objects that allow overplotting of multiple lightcurves, and initial support for working with spectrogram data. SunPy provides integration with online services such as The Virtual Solar Observatory (VSO), The Heliophysics Event Knowledgebase (HEK), and SunPy also provides functionality that is not currently available in SSW such as advanced time series manipulation routines and support for working with solar data stored using JPEG 2000. We give some examples of what can be done in SunPy, and show how Python-based solar data-analysis can take advantage of many different data analysis tools not readily available in SSWIDL.


We also discuss future goals for the project and ways for interested users can become involved in the planning and development of SunPy.

(Presented at SIPWork VI meeting in Bozeman, MT)

Comments (0)

You must be logged in to post comments.

Last saved: 2012-08-16

Cite "Filename"

Place your mouse over the citation text to select it

Embed "SunPy: Python for Solar Physics Data Analysis"

Place your mouse over the embed code to select and copy it

Claim article

You claim request was sent. I will be handled in the next 24 hours.

Close window


We appreciate all your comments, questions, suggestions or gratitude.


The username or password entered are wrong.

Reset password

Your password will be sent to your registered e-mail address.

Create account

I agree to the Terms & Conditions *