read_pha¶
-
sherpa.astro.io.
read_pha
(arg, use_errors=False, use_background=False)[source]¶ Create a DataPHA object.
Parameters: - arg – The name of the file or a representation of the file (the type depends on the I/O backend) containing the PHA data.
- use_errors (bool, optional) – If the PHA file contains statistical error values for the
count (or count rate) column, should it be read in. This
defaults to
False
. - use_background (bool, optional) – Should the background PHA data (and optional responses) also be read in and associated with the data set?
Returns: data
Return type: