Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
SunPy - Python for solar physics
Python Prolog
branch: master

This branch is 4957 commits behind sunpy:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
benchmarks
doc
sunpy
tools
.gitignore
INSTALL.txt
LICENSE.txt
MANIFEST.in
README.md
distribute_setup.py
pavement.py
setup.py
tox.ini

README.md

SunPy

SunPy is an open-source Python library for solar physics data analysis.

Installation

To begin, installing the following requirements if you don't already have them:

Next, use git to grab the latest version of SunPy:

git clone git://github.com/sunpy/sunpy.git

Done! In order to enable SunPy to be imported from any location you must make sure that the library is somewhere in your PYTHONPATH environmental variable. For now the easiest thing is to simply start Python from the directory you just downloaded. (TODO: Include setup.py in github)

Usage

Here is a quick example of plotting an AIA image:

>>> import sunpy
>>> import matplotlib.cm as cm
>>> m = sunpy.make_map(sunpy.AIA_171_IMAGE)
>>> m.show(cmap=cm.hot)

Getting Help

For more information or to ask questions about SunPy, check out:

Contributing

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.

Something went wrong with that request. Please try again.