compute_lightcurve_fpp#
- gammapy.estimators.utils.compute_lightcurve_fpp(lightcurve, flux_quantity='flux')[source]#
Compute the point-to-point excess variance of the input lightcurve.
Internally calls the
compute_fpp
function- Parameters:
- lightcurve
FluxPoints
The lightcurve object.
- flux_quantitystr, optional
Flux quantity to use for calculation. Should be ‘dnde’, ‘flux’, ‘e2dnde’ or ‘eflux’. Default is ‘flux’.
- lightcurve
- Returns:
- table
Table
Table of point-to-point excess variance and associated error for each energy bin of the lightcurve.
- table
Examples
from gammapy.estimators import FluxPoints from gammapy.estimators.utils import compute_lightcurve_fpp lightcurve = FluxPoints.read( "$GAMMAPY_DATA/estimators/pks2155_hess_lc/pks2155_hess_lc.fits", format="lightcurve", ) fpp = compute_lightcurve_fpp(lightcurve)