threeML.utils.time_series.binned_spectrum_series module¶
- class threeML.utils.time_series.binned_spectrum_series.BinnedSpectrumSeries(binned_spectrum_set, first_channel=1, ra=None, dec=None, mission=None, instrument=None, verbose=True)[source]¶
Bases:
threeML.utils.time_series.time_series.TimeSeries
- property binned_spectrum_set¶
returns the spectrum set :return: binned_spectrum_set
- property bins¶
the time bins of the spectrum set :return: TimeIntervalSet
- count_per_channel_over_interval(start, stop)[source]¶
return the number of counts in the selected interval :param start: start of interval :param stop: stop of interval :return:
- counts_over_interval(start, stop)[source]¶
return the number of counts in the selected interval :param start: start of interval :param stop: stop of interval :return:
- exposure_over_interval(start, stop)[source]¶
calculate the exposure over the given interval
- Parameters
start – start time
stop – stop time
- Returns