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.DbQuery or lsst.analysis.ap.ppdb.PpdbTap dia_object_id : int

Object id to load.

axmatplotlib.axes.Axes, optional

Axes to draw into; if None, a new figure is created.

exclude_flaggedbool, optional

Forwarded to load_sources_for_object when 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 PPDB PpdbTap interface does not expose flag filtering, so True is rejected there. DiaForcedSources are always loaded unfiltered.

include_forcedbool, optional

If True, also overlay diaForcedSources as small markers.

Returns#

fig : matplotlib.figure.Figure ax : matplotlib.axes.Axes sources : pandas.DataFrame

DiaSources used for the plot.

forcedpandas.DataFrame or None

DiaForcedSources used for the plot (None if include_forced is False).