SunPy is an open-source Python library for solar physics data analysis.
To begin, install the following requirements:
- Python (2.7.x, 3.4.x or later)
- Astropy (1.0.0)
- Matplotlib (1.1+)
- pandas (0.10.0+)
Next, use git to grab the latest version of SunPy:
git clone https://github.com/sunpy/sunpy.git cd sunpy python setup.py install
For detailed installation instructions, see the installation guide in the SunPy docs.
Here is a quick example of plotting an AIA image:
>>> import sunpy.map >>> import sunpy.data.sample >>> import matplotlib.cm as cm >>> aia = sunpy.map.Map(sunpy.data.sample.AIA_171_IMAGE) >>> aia.peek()
For more information or to ask questions about SunPy, check out:
If you would like to get involved, start by joining the SunPy mailing list and check out the Developer's Guide section of the SunPy docs. Stop by our IRC chat room named #sunpy on irc.freenode.net if you have any questions. Help is always welcome so let us know what you like to work on, or check out the issues page for a list of some known outstanding items.