lightcurve#
- lsst.analysis.ap.lightcurve(query, dia_object_id, ax=None, exclude_flagged=False, include_forced=True)#
Plot a per-band psfFlux light curve for one diaObject.
Parameters#
query :
lsst.analysis.ap.apdb.DbQueryorlsst.analysis.ap.ppdb.PpdbTapdia_object_id :intObject id to load.
- ax
matplotlib.axes.Axes, optional Axes to draw into; if None, a new figure is created.
- exclude_flagged
bool, optional Forwarded to
load_sources_for_objectwhen the query supports it. Defaults to False so the lightcurve matches the row count of a direct APDB query; pass True to drop diaSources matching the configured bad-flag list. The PPDBPpdbTapinterface does not expose flag filtering, so True is rejected there. DiaForcedSources are always loaded unfiltered.- include_forced
bool, optional If True, also overlay diaForcedSources as small markers.
Returns#
fig :
matplotlib.figure.Figureax :matplotlib.axes.Axessources :pandas.DataFrameDiaSources used for the plot.
- forced
pandas.DataFrameor None DiaForcedSources used for the plot (None if
include_forcedis False).
- ax