Observations

class gammapy.data.Observations(obs_list=None)[source]

Bases: object

Container class that holds a list of observations.

Parameters:
obs_list : list

A list of DataStoreObservation

Attributes Summary

ids List of obs IDs (list)

Methods Summary

select_time(self, time_interval) Select a time interval of the observations.

Attributes Documentation

ids

List of obs IDs (list)

Methods Documentation

select_time(self, time_interval)[source]

Select a time interval of the observations.

Parameters:
time_interval : astropy.time.Time

Start and stop time of the selected time interval. For now we only support a single time interval.

Returns:
new_observations : Observations

A new observations instance of the specified time interval