Skip to the navigation links
Last modified: December 2009

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

write_arf

Context: py.crates

Synopsis

Write an ARFCrate to an output file.

Syntax

write_arf(crate, filename)

Description

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

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

Example

>>> print(get_crate_type(cr))
ARF
>>> write_arf(cr, "arf.fits")
1

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

Bugs

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

See Also

py.crates
add_col, add_key, add_piximg, delete_col, delete_key, delete_piximg, is_arf, read_arf, read_file, read_pha, read_rmf, write_file, write_pha, write_rmf
py.crates_contrib
make_table_crate, scale_image_crate, write_columns

Last modified: December 2009