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

Jump to: Description · Example · Bugs · See Also

AHELP for CIAO 4.10


Context: crates


Write an RMFCrateDataset to a file.


write_rmf(rmf, filename [, clobber=False])


Argument Description
rmf The RMFCrateDataset object to write out.
filename The output file name. To change the format from FITS add a kernel specifier as described in 'ahelp dmopt' and 'ahelp dmascii'.
clobber Set to True if the output file already exists and you wish to over-write it, since the default behavior is to raise an IOError in this case.

The write_rmf command creates an output file for the input RMF CrateDataset.

Metadata handling

As discussed in ahelp read_file, the Crate and Crate Dataset objects do not retain all the information from the input file.


>>> rmf = read_rmf("in.rmf")
>>> write_rmf(rmf, "out.rmf")


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

make_image_crate, make_table_crate, scale_image_crate, smooth_image_crate, write_arrays, write_columns
add_col, add_crate, add_key, add_piximg, cratedataset, delete_col, delete_key, delete_piximg, get_crate, is_rmf, read_file, read_pha, read_rmf, write_file, write_pha

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: Smithsonian Institution, Copyright © 1998-2017. All rights reserved.