Skip to the navigation links
Last modified: December 2009

URL: http://cxc-newtest.cfa.harvard.edu/ciao4.2/write_rmf.sl.html
AHELP for CIAO 4.2

write_rmf

Context: sl.crates

Synopsis

Write an RMFCrate to an output file.

Syntax

write_rmf(crate, filename);

Description

  • crate - input RMFCrate object
  • filename - name of the output file

The write_rmf command creates an output file for the input RMFCrate, overwriting any existing file with the same name. The output columns are chosen to match the OGIP RMF file format definition. The command returns a "1" if the file is written successfully.

Example

slsh> get_crate_type(cr);
RMF
slsh> write_rmf(cr, "rmf.fits");
1

An existing crate is determined to be an RMFCrate by get_crate_type, then it is written to the file rmf.fits.

Bugs

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

See Also

sl.crates
add_col, add_key, add_piximg, delete_col, delete_key, delete_piximg, is_rmf, read_arf, read_file, read_pha, read_rmf, write_arf, write_file, write_pha
sl.crates_contrib
make_table_crate, scale_image_crate, write_columns

Last modified: December 2009