LightCurveEstimator

class gammapy.time.LightCurveEstimator(spec_extract)[source]

Bases: object

Light curve estimator.

For a usage example see light_curve.html.

Parameters:

spec_extract : SpectrumExtraction

Contains statistics, IRF and event lists

Methods Summary

compute_flux_point(time_interval, …) Compute one flux point for one time interval.
light_curve(time_intervals, spectral_model, …) Compute light curve.

Methods Documentation

compute_flux_point(time_interval, spectral_model, energy_range)[source]

Compute one flux point for one time interval.

Parameters:

time_interval : Time

Time interval (2-element array, or a tuple of Time objects)

spectral_model : SpectralModel

Spectral model

energy_range : Quantity

True energy range to evaluate integrated flux (true energy)

Returns:

measurements : dict

Dictionary with flux point measurement in the time interval

light_curve(time_intervals, spectral_model, energy_range)[source]

Compute light curve.

Implementation follows what is done in: http://adsabs.harvard.edu/abs/2010A%26A…520A..83H.

To be discussed: assumption that threshold energy in the same in reco and true energy.

Parameters:

time_intervals : list of Time

List of time intervals

spectral_model : SpectralModel

Spectral model

energy_range : Quantity

True energy range to evaluate integrated flux (true energy)

Returns:

lc : LightCurve

Light curve