Chandra X-Ray Observatory
Skip to the navigation links
Last modified: 26 October 2016


Welcome to CIAO

The remarkable science capabilities of the Chandra X-ray Observatory demanded new, flexible, multi-dimensional software to analyze the data it returned. The result is CIAO, a system that has proven itself useful for the analysis of data from other, non-X-ray missions, because of the mission independence that is the basis of the CIAO design.

There are CIAO Software downloads available for several platforms.

The Introduction to Tools and Applications page describes the classes of tools and gives links to the tool help files. The Release Notes have detailed information regarding the most recent version of CIAO and any patches, including new tool descriptions and bug fixes. The Data Caveats page gives warnings for specific data sets.

For information regarding calibration and how CIAO uses cal information, try visiting the CALDB page. You may also find the Chandra Instruments and Calibration page useful.

High resolution spectroscopy using the Chandra gratings requires a greater amount of atomic physics knowledge than previous X-ray astronomy has done. The CXC has therefore supported the creation of a new atomic physics database, ATOMDB.

The following is a simple example of how CIAO works. This set of commands creates an energy spectrum for a region of an event file. The data is from the ObsID 214 dataset (an ACIS-S observation of supernova remnant Cassiopeia A), which was downloaded from the Archive.

We begin by loading the event file into the image viewer, ds9.

unix% ds9 acisf00214N003_evt2.fits &

Then we select regions to contain most of the source emission, shown in green on the image below. The resulting region file (obj.reg) looks like:

unix% more obj.reg
# Region file format: CIAO version 1.0
[Cas A image in ds9]

The dmextract tool can be used to create a spectrum for the source by binning the events which fall within the regions:

unix% punlearn dmextract
unix% dmextract "acisf00214N003_evt2.fits[sky=region(obj.reg)][bin pi]" spectrum.fits 

The PI spectrum can now be plotted and examined using ChIPS, the CIAO plotting tool:

unix% chips
Welcome to ChIPS: CXC's Plotting Package
CIAO 4.8 ChIPS version 1 Thursday, December 3, 2015

chips> make_figure("spectrum.fits[cols channel,counts]")

Which produces the plot shown. The prism file browser can also be used to select data to plot using ChIPS.

[Data plotted in ChIPS]
chips> quit

This spectrum may also be used as input to Sherpa, the CIAO modeling and fitting tool, and analyzed further:

unix% sherpa
Welcome to Sherpa: CXC's Modeling and Fitting Package
CIAO 4.8 Sherpa version 1 Thursday, December 3, 2015

sherpa> load_pha("spectrum.fits")
sherpa> plot_data()
sherpa> ignore(250,None)
sherpa> plot_data

This filtering shows the detail of the spectrum in the plot below. Analysis of greater depth, such as fitting a source model, may be done in Sherpa once the necessary response files have been created.

[Spectrum plotted in Sherpa]
sherpa> quit

The CIAO Threads page contains more examples of frequently used data analysis procedures.

Last modified: 26 October 2016
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: Smithsonian Institution, Copyright © 1998-2016. All rights reserved.