ObservationSummary¶
-
class
gammapy.data.
ObservationSummary
(obs_stats)[source]¶ Bases:
object
Summary of observations.
For a list of observation stats, this class can make a table and do summary printout and plots.
- TODO: Data should be stored in
Table
! - TODO: there should be a per-run version of the stats in addition to the cumulative version that’s there now.
Parameters: - obs_stats : list
Python list of
ObservationStats
Methods Summary
obs_wise_summary
()Observation wise summary report (str). plot_background_rate
([ax])Plot background rate for each observation. plot_background_vs_livetime
([ax])Plot background as a function of livetime. plot_excess_vs_livetime
([ax])Plot excess as a function of livetime. plot_gamma_rate
([ax])Plot gamma rate for each observation. plot_significance_vs_livetime
([ax])Plot significance as a function of livetime. Methods Documentation
-
plot_background_rate
(ax=None, **kwargs)[source]¶ Plot background rate for each observation.
Parameters: Returns: - ax :
Axes
Axis
- ax :
-
plot_background_vs_livetime
(ax=None, **kwargs)[source]¶ Plot background as a function of livetime.
Parameters: Returns: - ax :
Axes
Axis
- ax :
-
plot_excess_vs_livetime
(ax=None, **kwargs)[source]¶ Plot excess as a function of livetime.
Parameters: Returns: - ax :
Axes
Axis
- ax :
- TODO: Data should be stored in