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

Can I overlay contours on an image?


Contours can be overlain on images, or on other contours, or even curves and histograms. If there is a current plot, then an add_<object> call will add the new data to this plot. It may not however be visible if the axis range and scales of the existing plot and new data are not similar.

If acis.fits and vla.fits both contain WCS information then the following commands will overlay contours from vla.fits onto the acis.fits image (blue lines are positive values and red lines negative ones):

chips> clear()
chips> make_figure("acis.fits", "image", ["colormap", "heat"])
chips> add_contour("vla.fits")
chips> set_contour(["levels", [-0.02, -0.01], "color", "red"])
chips> add_contour("vla.fits")
chips> set_contour(["levels", [0.01, 0.02, 0.03, 0.04, 0.05], "color", "blue"])

The ChIPS Gallery

More examples can be seen in the ChIPS Gallery.

[NOTE]
Unsupported WCS projections

The add_contour, add_image, and make_figure commands will warn you if given an image with an unsupported WCS projection (that is, everything but a tangent-plane projection), and fall back to using the physical or logical systems. An example of the warning is:

chips WARNING: Unable to use world transform - RA---SIN, DEC--SIN is an unsupported type. Using physical transform.


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.