ObservationSummary¶
-
class
gammapy.data.ObservationSummary(obs_stats)[source]¶ Bases:
objectSummary 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
ObservationStatsMethods 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: ax :
Axesor None, optional.The
Axesobject to be drawn on.Returns: ax :
AxesAxis
-
plot_background_vs_livetime(ax=None, **kwargs)[source]¶ Plot background as a function of livetime.
Parameters: ax :
Axesor None, optional.The
Axesobject to be drawn on.Returns: ax :
AxesAxis
-
plot_excess_vs_livetime(ax=None, **kwargs)[source]¶ Plot excess as a function of livetime.
Parameters: ax :
Axesor None, optional.The
Axesobject to be drawn on.Returns: ax :
AxesAxis
- TODO: Data should be stored in