PHACountsSpectrumList

class gammapy.spectrum.PHACountsSpectrumList[source]

Bases: list

List of PHACountsSpectrum

All spectra must have the same energy binning. This represent the PHA type II data format. See https://heasarc.gsfc.nasa.gov/docs/heasarc/ofwg/docs/spectra/ogip_92_007/node8.html

Methods Summary

from_hdulist(hdulist) Create from HDUList
read(filename) Read from file
to_hdulist() Create HDUList
to_table() Create Table
write(outdir, **kwargs) Write to file

Methods Documentation

classmethod from_hdulist(hdulist)[source]

Create from HDUList

classmethod read(filename)[source]

Read from file

to_hdulist()[source]

Create HDUList

to_table()[source]

Create Table

write(outdir, **kwargs)[source]

Write to file