|AHELP for CIAO 4.2||
Write a PHACrate to an output file.
- crate - input PHACrate object
- filename - name of the output file
The write_pha command creates an output file for the input PHACrate, overwriting any existing file with the same name. The output columns are chosen to match the OGIP PHA file format definition. The command returns a "1" if the file is written successfully.
>>> cr = read_pha("pha.fits") >>> delete_col(cr, "QUALITY") 1 >>> write_pha(cr, "no_qual.fits") 1
Delete the QUALITY column from the crate, then write it out to the file no_qual.fits.
See the bug pages on the CIAO website for an up-to-date listing of known bugs.