threeML.utils.OGIP.pha module
- class threeML.utils.OGIP.pha.PHAII(instrument_name: str, telescope_name: str, tstart: numpy.ndarray, telapse: numpy.ndarray, channel: numpy.ndarray, rate: numpy.ndarray, quality: numpy.ndarray, grouping: numpy.ndarray, exposure: numpy.ndarray, backscale: numpy.ndarray, respfile: numpy.ndarray, ancrfile: numpy.ndarray, back_file: Optional[numpy.ndarray] = None, sys_err: Optional[numpy.ndarray] = None, stat_err: Optional[numpy.ndarray] = None, is_poisson: bool = False)[source]
Bases:
threeML.io.fits_file.FITSFile
- classmethod from_fits_file(fits_file) threeML.io.fits_file.FITSFile [source]
- classmethod from_time_series(time_series, use_poly=False) threeML.utils.OGIP.pha.PHAII [source]
- property instrument
- class threeML.utils.OGIP.pha.PHAWrite(*ogiplike)[source]
Bases:
object
- write(outfile_name: str, overwrite: bool = True, force_rsp_write: bool = False) None [source]
Write a PHA Type II and BAK file for the given OGIP plugin. Automatically determines if BAK files should be generated.
- Parameters
outfile_name – string (excluding .pha) of the PHA to write
overwrite – (optional) bool to overwrite existing file
force_rsp_write – force the writing of an RSP
- Returns