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

How do I create a plot of an image?

Images can be created using either make_figure or add_image:

make_figure("img.fits", "image")
make_figure("img.fits", "image", ["colormap", "heat"])

add_image("img.fits", ["colormap", "heat"])

The ChIPS Gallery

More examples can be seen in the ChIPS Gallery.

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: Smithsonian Institution, Copyright © 1998-2017. All rights reserved.