Chandra X-Ray Observatory
	(CXC)
Skip to the navigation links
Last modified: 8 December 2015

URL: http://cxc.harvard.edu/sherpa/python/index.html

Python Resources


Sherpa is an importable module for the dynamic, object-oriented Python programming language, which means you can write your own Python scripts for use in Sherpa. This easily allows for creating complex analysis and modeling functions, building batch-mode analysis, and extending the provided functionality to meet required needs. Below is a list of Python resources which you may find helpful as you conduct your scientific analysis in Sherpa. To learn about the key features of Python, refer to the official Python website.

[NOTE]
Python version

The Python version used in CIAO 4.8 is Python 2.7. The Chandra X-ray Center is reviewing whether to move to version 3 of Python and comments about this are welcome, either to the CXC Helpdesk or the Chandra Users Committee.

Tutorials

The Python Tutorial

Comprehensive documentation provided by the official Python website.

Dive into Python

On-line version of the book Dive into Python, including many detailed examples of usage which prove helpful to both beginner and experienced Python users.

Practical Python for Astronomers

A series of hands-on workshops to explore the Python language and the analysis tools it provides. The emphasis is on using Python to solve real-world problems that astronomers are likely to encounter in research.

Astronomy Software

AstroPy

A community Python library for Astronomy. See also the associated paper Astropy: A community Python package for astronomy by the AstroPy collaboration.

AstroML: Machine Learning and Data Mining for Astronomy

The astroML project accompanies the book "Statistics, Data Mining, and Machine Learning in Astronomy".

Q&A

Ask SciPy

A site hosted on scipy.org which allows you to submit a question about Python and receive answers from other users of the site (questions are not limited to those about the scipy or numpy packages).

User Blogs

Sherpa Blog

Includes useful tips and tricks on using Python in Sherpa.

Python Perambulations

A wide-ranging look at data analysis with Python.

Plumber Jack

Documents miscellaneous items relating to the Python logging package.

Doug Hellmann

The "Python Module of the Week" series provides examples of usage of the various modules contained in the Python standard library.

Books

Beginning Python: From Novice to Professional, by Magnus Lie Hetland
A Primer on Scientific Programming with Python, by Hans Petter Langtangen
Python Scripting for Computational Science, Hans Petter Langtangen
Beginning Python Visualization: Crafting Visual Transformation Scripts, by Shai Vaingast
Statistics, Data Mining, and Machine Learning in Astronomy by Zeljko Ivezic, Andrew Connolly, Jacob VanderPlas, and Alex Gray

Last modified: 8 December 2015
Smithsonian Institute Smithsonian Institute

The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA.   Email:   cxcweb@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2016. All rights reserved.