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:

dead_time_over_interval(start, stop)[source]

computer the dead time over the interval

exposure_over_interval(start, stop)[source]

calculate the exposure over the given interval

Parameters
  • start – start time

  • stop – stop time

Returns

set_active_time_intervals(*args)[source]

Set the time interval(s) to be used during the analysis. Specified as ‘tmin-tmax’. Intervals are in seconds. Example:

set_active_time_intervals(“0.0-10.0”)

which will set the time range 0-10. seconds.

view_lightcurve()[source]
Parameters
  • start

  • stop

  • dt

  • use_binner