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

Methods Summary

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

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