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

What file formats are supported?


The make_figure, add_curve, add_histogram, add_image, and add_contour routines can plot data from a file. The supported formats are the same as those of the CIAO Data Model, namely FITS binary tables and images and ASCII tables.

The following files show different ways of recording the same data in an ASCII file (i.e. the tabular data is the same, the only difference is the header):

unix% head -2 file1.lis
0.2 1.3e43 1
0.3 1.5e43 2

unix% head -3 file2.dat
# z lz flag
0.2 1.3e43 1
0.3 1.5e43 2

unix% head -5 file3
Date: Tue May 20 09:20:44 EDT 2008
Simulation Results
--
0.2 1.3e43 1
0.3 1.5e43 2

To plot the first two columns from these files, you would use a filename of:

The Data Model text file help page provides more information and examples of how ASCII files are read in.



Last modified: 14 December 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:   cxchelp@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2017. All rights reserved.