Last modified: December 2013

URL: https://cxc.cfa.harvard.edu/chips/ahelp/display_image.html
Jump to: Description · Examples · Bugs · See Also


AHELP for CIAO 4.11 ChIPS v1

display_image

Context: images

Synopsis

Display the specified image.

Syntax

display_image()
display_image(id)

Description

The function arguments.

Argument Description
id A ChipsId structure identifying the item, or a string containing the name of the object.

If no argument is given then the current image is shown, otherwise the argument determines what to show.


Examples

Example 1

chips> add_image('evt2_image.fits')
chips> hide_image()
chips> display_image()

Create a image and hide it, then display the current image.

Example 2

chips> add_image('evt2_image.fits','id=events')
chips> hide_image('events')
chips> add_image('evt2_image2.fits')
chips> id = ChipsId()
chips> id.image = 'events'
chips> display_image(id)

Two images are created; the second image is current after it is created. The id.image command sets the image value of the ChipsId structure to the first image. That image is then displayed.

Example 3

chips> add_image('evt2_image.fits')
chips> add_image('evt2_image2.fits')
chips> hide_image('all')
chips> display_image('all')

Two images are created and hidden, then the display_image command displays them both.


Bugs

See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.

See Also

concepts
chipsid, currency, depthcontrol
contrib
chips_helix, imextent
depth
collapse_depths, display_depth, get_default_depth, hide_depth, reindex_depth, set_default_depth
images
add_image, current_image, delete_image, get_image, hide_image, load_colormap, print_image, remove_image_channel, set_image, shuffle_image