Chandra X-Ray Observatory
	(CXC)
Skip to the navigation links
Last modified: December 2013

URL: http://cxc.harvard.edu/ciao/ahelp/add_crate.html
Jump to: Description · Example · Bugs · See Also


AHELP for CIAO 4.9

add_crate

Context: crates

Synopsis

Add a crate to a dataset.

Syntax

add_crate(dataset, crate)

Description

Argument Description
dataset A CrateDataset object.
crate A Crate object such as a TABLECrate or IMAGECrate

The add_crate command adds the crate to the dataset.

Example

>>> ds = CrateDataset()
>>> cr1 = read_file('img.fits')
>>> cr2 = read_file('tbl2.dat')
>>> cr2.name = 'TBLDATA'
>>> add_crate(ds, cr1)
>>> add_crate(ds, cr2)
>>> ds.write('new.fits')

Bugs

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

Refer to the CIAO bug pages for an up-to-date listing of known issues.

See Also

crates
cratedataset, get_crate, read_pha, read_rmf, write_pha, write_rmf

Last modified: December 2013
Smithsonian Institute Smithsonian Institute

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