File: plot_bkg_3d.py

package info (click to toggle)
gammapy 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,800 kB
  • sloc: python: 81,999; makefile: 211; sh: 11; javascript: 10
file content (9 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
"""Plot the background rate from the HESS DL3 data release 1."""

import matplotlib.pyplot as plt
from gammapy.irf import Background3D

filename = "$GAMMAPY_DATA/hess-dl3-dr1/data/hess_dl3_dr1_obs_id_020136.fits.gz"
bkg = Background3D.read(filename, hdu="BKG")
bkg.peek()
plt.show()