Telescope Specific Loaders¶
The pyxsis.io submodule provides helper functions for loading files that are specific to an X-ray observatory.
Chandra X-ray Observatory¶
To load a Chandra PHA level 1 file extracted from an HETG observation:
from pyxsis.io import load_chandra_hetg
spectrum = load_chandra_hetg("my_heg_m1.pha")
If the PHA file has the ARF and RMF filenames specified in the FITS file header (‘ANCRFILE’ and ‘RESPFILE’, respectively), then they will be automatically loaded by the pyxsis ARF and RMF classes. Otherwise, no response files will be assigned and the user must specify them.
-
pyxsis.io.
load_chandra_hetg
(filename, arf=None, rmf=None)[source]¶ Load Chandra HETG spectral data from a file into a spectrum object.
Inputs
- filenamestr
The path to the FITS file
- arfstr -or- pyxsis.xrayspectrum1d.ARF
Filename for the area response file (ARF) or a pre-loaded AreaResponse object
- rmfstr -or- pyxsis.xrayspectrum1d.RMF
Filename for the response matrix file (RMF) or a pre-loaded ResponseMatrix object
Returns
pyxsis XraySpectrum1D object representing the data in the input FITS file