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

obs_wise_summary()[source]

Observation wise summary report (str).

plot_background_rate(ax=None, **kwargs)[source]

Plot background rate for each observation.

Parameters:

ax : Axes or None, optional.

The Axes object to be drawn on.

Returns:

ax : Axes

Axis

plot_background_vs_livetime(ax=None, **kwargs)[source]

Plot background as a function of livetime.

Parameters:

ax : Axes or None, optional.

The Axes object to be drawn on.

Returns:

ax : Axes

Axis

plot_excess_vs_livetime(ax=None, **kwargs)[source]

Plot excess as a function of livetime.

Parameters:

ax : Axes or None, optional.

The Axes object to be drawn on.

Returns:

ax : Axes

Axis

plot_gamma_rate(ax=None, **kwargs)[source]

Plot gamma rate for each observation.

Parameters:

ax : Axes or None, optional.

The Axes object to be drawn on.

Returns:

ax : Axes

Axis

plot_significance_vs_livetime(ax=None, **kwargs)[source]

Plot significance as a function of livetime.

Parameters:

ax : Axes or None, optional.

The Axes object to be drawn on.

Returns:

ax : Axes

Axis