Chandra X-Ray Observatory
Skip to the navigation links
Last modified: 13 April 2018

Can I use a contour file created by ds9?

The CIAO scripts package, available from the Scripts page, provides the add_ds9_contours routine as part of the chips_contrib.utils module. This command will plot up the contours from a DS9 contours file (e.g. ds9.con) with optional coordinate conversion (for example, to allow you to display contours saved in equatorial coordinates on an image displayed in physical coordinates.

from chips_contrib.utils import *

One reason for doing this is that it lets you use ds9 to create contours for an image with a WCS projection that is not supported by ChIPS (e.g. SIN), and then display them directly, or on top of an image in ChIPS.

Examples: Displaying contours from DS9; Reading in data from FITS and ASCII files.

Last modified: 13 April 2018
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-2017. All rights reserved.