ObservationStats¶
-
class
gammapy.data.ObservationStats(n_on=None, n_off=None, a_on=None, a_off=None, obs_id=None, livetime=None, alpha=None, gamma_rate=None, bg_rate=None)[source]¶ Bases:
gammapy.stats.StatsObservation statistics.
Class allowing to summarize observation (
DataStoreObservation) statisticsParameters: n_on : int
Number of on events
n_off : int
Number of off events
a_on : float
Relative background exposure of the on region
a_off : float
Relative background exposure of the off region
obs_id : int
ID of the observation
livetime : float
Livetime of the observation
alpha : float
Normalisation between the on and the off exposure
bg_rate : float
Background rate (/min)
gamma_rate : float
Gamma rate (/min)
Attributes Summary
alphaAlpha (on / off exposure ratio) sigmaLi-Ma significance for observation statistics ( float).Methods Summary
from_obs(obs, bg_estimate)Create from DataStoreObservation.stack(stats_list)Stack (concatenate) list of ObservationStats.to_dict()Data as an OrderedDict.Attributes Documentation
-
alpha¶ Alpha (on / off exposure ratio)
Override member function from
Statsto take into account weighted alpha by number of Off events
Methods Documentation
-
classmethod
from_obs(obs, bg_estimate)[source]¶ Create from
DataStoreObservation.Parameters: obs :
DataStoreObservationIACT data store observation
bg_estimate :
BackgroundEstimateBackground estimate
-
classmethod
stack(stats_list)[source]¶ Stack (concatenate) list of
ObservationStats.Parameters: stats_list : list
List of
ObservationStatsReturns: total_stats :
ObservationStatsStatistics for stacked observation
-
to_dict()[source]¶ Data as an
OrderedDict.This is useful for serialisation or putting the info in a table.
-