Last modified: March 2026

URL: https://cxc.cfa.harvard.edu/ciao/ahelp/ds9.html
Jump to: Description · Examples · About · See Also


AHELP for CIAO 4.18

ds9

Context: concept

Synopsis

SAOImageDS9 is the de facto standard astronomical image display application.

Description

SAOImageDS9 (DS9) is an astronomical imaging and data visualization application. DS9 supports FITS images and binary tables, multiple frame buffers, region manipulation, and many scale algorithms and colormaps. It provides for easy communication with external analysis tasks and is highly configurable and extensible via XPA and SAMP. DS9 is a stand-alone application. It requires no installation or support files. All versions and platforms support a consistent set of GUI and functional capabilities. DS9 supports advanced features such as 2-D, 3-D, and RGB frame buffers, mosaic images, tiling, blinking, geometric markers, colormap manipulation, scaling, arbitrary zoom, cropping, rotation, pan, and a variety of coordinate systems. The GUI for DS9 is user-configurable. GUI elements such as the coordinate display, panner, magnifier, horizontal and vertical graphs, button bar, and color bar can be configured via menus or the command line.

DS9 Features and Capabilities

DS9 is far more than just a simple FITS display tool. Some highlights include:

For more information see the DS9 Reference Manual and the exhaustive SAOImageDS9 Interface and Internal Design document.

DS9 in CIAO

DS9 is, by default, included with CIAO. It is one of the few astronomical imaging applications that can directly display Chandra FITS event files (binary tables). CIAO provides a thin wrapper shell script around the DS9 command that is used to automatically load DAX , CIAO's DS9 analysis extensions. CIAO provides a port of DS9 that is expected to be compatible with most operating system versions for a particular set of hardware (i.e., Linux, macOS ARM, or macOS Intel).


Examples

Example 1

unix% ds9

Simply running the command "ds9" will launch the application.

Example 2

unix% ds9 image.fits

This command launches the DS9 application and will load the file named "image.fits".

Example 3

unix% ds9 image.fits acis_evt.fits

This example loads multiple (2) files into separate frames. The first frame will be an image, the second frame is an ACIS event table that DS9 will automatically bin into an image for display.

Example 4

unix% ds9 image.fits -log -cmap bb -scale limits 0 100 -zoom to 3 -pan
to 512 512 physical

This example shows some of the command line options . The command line options are processed in order going from left to right. First, the pixel value scaling function is set to log scale. Then the colormap is set to DS9's "bb" colormap. The pixel scaling range is set from 0 to 100. Pixels are zoomed to 3 and the display is panned (re-centered) to pixels (512, 512) in the physical coordinate system.


About

DS9 is a Tcl/Tk application. The GUI is implemented as a very thin layer of Tk. A number of Tk Canvas widgets were created in C++ to support all the functionality needed. Basically, all the real work is done in C++. DS9 inherited SAOTNG's support of regions, XPA, external analysis support, and the general GUI. However, all the visualization techniques come directly from SAOImage.

The current version of DS9 is composed of the Tk widgets created along with support from about 20 other open source products. The distributed binaries consist of a self-contained, self-extracting archive and application, which provides an independent Tcl/Tk environment without requiring installation.

See Also

concept
ciao, subspace
dm
dm, dmascii, dmfiltering, dmmasks, dmopt, dmregions
tools::aspect
dither_region
tools::composite
dax
tools::coordinates
dmcoords, fine_astro, reproject_aspect, reproject_events, sso_freeze, wcs_match, wcs_update
tools::core
dmappend, dmcopy, dmextract, dmlist
tools::detect
get_src_region
tools::gratings
tg_create_mask
tools::image
centroid_map, dmfilth, dmimg2jpg, dmimgadapt, dmimgblob, dmimgcalc, dmimgdist, dmimgfilt, dmimghist, dmimgpick, dmimgpm, dmimgproject, dmimgreproject, dmimgthresh, dmmaskbin, dmmaskfill, dmnautilus, dmradar, dmregrid, dmregrid2, energy_hue_map, evalpos, hexgrid, map2reg, merge_too_small, mkregmap, pathfinder, vtbin
tools::region
bkg_fixed_counts, convert_ds9_region_to_ciao_stack, dmcontour, dmellipse, dmgroupreg, dmimghull, dmimglasso, dmmakereg, psf_contour, rank_roi, regphystocel, roi, splitroi
tools::response
mean_energy_map, pileup_map
tools::statistics
dmstat, imgmoment, statmap