About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2008

URL: http://cxc.harvard.edu/ciao4.1/delete_image.py.html
AHELP for CIAO 4.1

delete_image

Context: py.crates

Synopsis

Delete an image from a crate.

Syntax

delete_image(crate)

Description

  • crate - input crate

The delete_image command removes the image from the crate. The command returns a "1" if the image is successfully deleted.

The image is only deleted from the data in the crate; it's not removed from the input file. The write_file command ("ahelp write_file") can be used to save the modified crate to a file.

Example

>>> cr = read_file("image.fits")
>>> print(get_image_shape(cr))
[512 512]
>>> delete_image(cr)
1

Delete the image from the crate.

Bugs

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

Last modified: December 2008



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.