Using Python for Interactive Data Analysis



Home
Tutorial 1
Tutorial 2
Tutorial 3
Tutorial 4
Tutorial 5
Five tutorials are planned to illustrate how to use Python to carry out interactive data analysis on astronomical data. In particular, we will show how PyFITS, numarray, matplotlib, and PyRAF can be used to manipulate, analyze, and visualize data interactively. The focus will be on using Python to directly manipulate and display data as one might do in IDL rather than run IRAF tasks to do the same. While previous experience in IDL and Python will be helpful neither is required. The emphasis will be using the existing tools interactively rather than on programming. Elements of Python will be introduced as needed, but this is not a "Learning to Program in Python" course (though by the end you should be able to write basic Python programs). Handouts will contain detailed comparisons with IDL capabilities for those interested in whether Python or IDL is better suited to their projects. There will be optional exercises. Manuals for the related packages will be provided in addition to handouts of material covered.

Tutorial 1: Reading and Manipulating Image Data

Describes the basics on how to use Python to carry out interactive data analysis. Focuses on reading images and manipulating arrays.

Tutorial 2: Reading and Plotting Spectral Data

Simple plotting commands using Matplotlib, reading FITS tables, and Python data structures

Tutorial 3: More Advanced Topics in PyFITS, numarray and IPython

Covers the use of the IPython shell, and more about PyFITS and numarray, including considerations about optimizing calculations for array processing routines

Tutorial 4: Using PyRAF; writing scripts and programs in Python

Tutorial 5: Interfacing with C programs and libraries, and other languages