lsst.analysis.ap#
This package contains scripts and pipelines to compute quality assurance metrics and make plots to study the output products of the alerts pipeline.
Using lsst.analysis.ap#
Contributing#
lsst.analysis.ap is developed at lsst/analysis_ap.
You can find Jira issues for this module under the analysis_ap component.
Task reference#
Tasks#
Script reference#
Python API reference#
lsst.analysis.ap Package#
Functions#
|
Return the official Rubin plotting color for a band. |
|
Enumerate and classify every association-disagreement cluster between two APDBs that share input diaSources. |
|
Per-task runtime and memory summary for a butler run collection. |
|
Compare two APDB datasets by spatially crossmatching diaObjects. |
|
Compare two APDB datasets by extracting unassociated sources, spatially crossmatching, and plotting cutouts of the differences. |
|
Render science/template/difference cutouts for many sources in a grid. |
|
Display a difference image alongside every coadd patch that went into its template. |
|
Overlay diaSource footprints on an exposure in Firefly, color-cycled so that touching footprints get distinct colors. |
|
Display the science, template, and difference images for a given visit+detector with diagnostic catalog markers overlaid. |
|
Display one image type side-by-side from two butlers, with overlays. |
Extract |
|
|
For a diaObjectId in run 1, return the full association cluster of diaSources and diaObjects from both runs. |
|
Compute per-pair flux residuals from a |
|
Convert ra/dec coordinates in an astropy table/pandas data frame to pixel x/y positions. |
|
Summary statistics on a single difference image. |
|
Run |
|
Plot a per-band psfFlux light curve for one diaObject. |
|
Search Simbad for associated sources within a 3 arcsecond region. |
|
Spatially cross-match two DiaSource-like DataFrames. |
|
Match a detected catalog against a truth/injection catalog. |
|
Compare two difference images for the same data id, pixel by pixel. |
|
Plot per-diaSource cutouts with overlaid markers at given diaObject sky positions. |
|
Two-column cutout figure comparing the run-1 and run-2 views of an association cluster. |
|
Compute a cone (ra, dec, radius) covering an exposure's sky footprint. |
|
Print a headline metric summary and build the diagnostic plot. |
|
Return a per-visit summary DataFrame for an APDB run. |
Classes#
|
Connect to a running postgres APDB instance and load data from it. |
|
APDB-shaped DataFrames reconstructed from DiaPipelineTask outputs. |
|
Reconstruct APDB-shaped catalogs from |
|
Open an sqlite3 APDB file to load data from it. |
|
Manage paths to image cutouts with filenames based on diaSourceId. |
|
Implementation of |
|
Abstract interface for APDB queries. |
|
The full PPDB record for a single diaObject. |
|
|
|
Generate cutouts plus a diaObject lightcurve panel for each diaSource. |
|
|
|
Generate template/science/difference image cutouts of DiaSources and an optional manifest for upload to a Zooniverse project. |
|
Load PPDB catalogs through the RSP TAP service as astropy Tables. |