Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 681 Bytes

lightcurve.rst

File metadata and controls

31 lines (20 loc) · 681 Bytes

Light Curves

:py~fermipy.gtanalysis.GTAnalysis.lightcurve can be used to fit charateristics of a source (flux, TS, etc.) in a sequence of time bins.

Examples

# Generate a lightcurve with two bins
lc = gta.lightcurve('sourceA', nbins=2)

# Generate a lightcurve with 1-week binning
lc = gta.lightcurve('sourceA', binsz=86400.*7.0)

# Generate a lightcurve freeing sources within 3 deg of the source
# of interest
lc = gta.lightcurve('sourceA', binsz=86400.*7.0, free_radius=3.0)

Reference/API

fermipy.gtanalysis.GTAnalysis.lightcurve