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 2007

URL: http://cxc.harvard.edu/ciao4.0/add_image.sl.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 4.0 add_image Context: sl.crates

Synopsis

Add an image to a crate.

Syntax

add_image(crate, cratedata);

Description

  • crate - input Crate object
  • cratedata - CrateData object to be added

Add an image, represented by the cratedata argument, to the crate. Any existing image in the crate will be replaced.

Argument Description
crate a Crate object
cratedata CrateData object

Example

slsh> crate = read_file("image.fits");
slsh> newimg = CrateData();
slsh> newimg.name = "NEWIMG";
slsh> add_image(crate, newimg);
1
slsh>

Overwrite the image in the Crate stored in the variable "crate" with an empty image called "NEWIMG".

Bugs

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

Hardcopy (PDF): A4 | Letter
Last modified: December 2007



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.