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.11

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