Synopsis
Delete the specified image.
Syntax
delete_image() delete_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 deleted, otherwise the argument determines what to delete.
Examples
Example 1
chips> add_image('evt2_image.fits') chips> delete_image()
Create a image, then delete it.
Example 2
chips> id = ChipsId() chips> add_image('image.fits','id=events') chips> add_image('image2.fits') chips> id.image = 'events' chips> delete_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 deleted.
Example 3
chips> add_image('image.fits') chips> add_image('image2.fits') chips> delete_image("all")
Two images are created, then the delete_image command deletes 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
- contrib
- chips_helix, imextent
- images
- add_image, current_image, display_image, get_image, hide_image, load_colormap, print_image, remove_image_channel, set_image, shuffle_image