| AHELP for CIAO 4.2 | write_rmf |
Context: py.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
>>> print(get_crate_type(cr)) RMF >>> 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
- py.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
- py.crates_contrib
- make_table_crate, scale_image_crate, write_columns
![[CIAO Logo]](../imgs/ciao_logo_navbar.gif)