BgRateTable

class gammapy.irf.BgRateTable(energy_lo, energy_hi, data)[source]

Bases: object

Background rate table.

The IRF format should be compliant with the one discussed at http://gamma-astro-data-formats.readthedocs.io/en/latest/irfs/. Work will be done to fix this.

Parameters:

energy_lo, energy_hi : Quantity, BinnedDataAxis

Bin edges of energy axis

data : Quantity

Background rate

Attributes Summary

energy

Methods Summary

from_hdulist(hdulist[, hdu])
from_table(table) Background rate reader
plot([ax, energy]) Plot background rate.
read(filename[, hdu])

Attributes Documentation

energy

Methods Documentation

classmethod from_hdulist(hdulist, hdu='BACKGROUND')[source]
classmethod from_table(table)[source]

Background rate reader

plot(ax=None, energy=None, **kwargs)[source]

Plot background rate.

Parameters:

ax : Axes, optional

Axis

energy : Quantity

Energy nodes

Returns:

ax : Axes

Axis

classmethod read(filename, hdu='BACKGROUND')[source]