LightCurveEstimator¶
-
class
gammapy.time.LightCurveEstimator(spec_extract)[source]¶ Bases:
objectClass producing light curve.
Parameters: spec_extract :
SpectrumExtractionContains 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 :
TimeTime interval (2-element array, or a tuple of Time objects)
spectral_model :
SpectralModelSpectral model
energy_range :
QuantityTrue 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.
TODO: For the moment there is an issue with the rebinning in reconstructed energy, do not use it: https://github.com/gammapy/gammapy/issues/953
Parameters: List of time intervals
spectral_model :
SpectralModelSpectral model
energy_range :
QuantityTrue energy range to evaluate integrated flux (true energy)
Returns: lc :
LightCurveLight curve
-