flux_residuals#
- lsst.analysis.ap.flux_residuals(matched, srcs2, flux_col='psfFlux', err_col='psfFluxErr', id_col='diaSourceId', plot=False)#
Compute per-pair flux residuals from a
match_catalogsresult.Parameters#
- matched
pandas.DataFrame Output of
match_catalogs(rows from catalog 1 with partner ids).- srcs2
pandas.DataFrame Catalog 2, indexed implicitly by
id_colfor partner lookup.- flux_col, err_col
str Column names for the flux and its error in both catalogs.
- id_col
str Source-id column in both catalogs.
matchedis assumed to havef"{id_col}_2"populated bymatch_catalogs.- plot
bool If True, return a histogram + Q-Q plot in addition to the residuals.
Returns#
- residuals
pandas.DataFrame One row per pair with columns
flux1,flux2,err1,err2,delta_flux,delta_flux_sigma, andxmatch_dist_arcsec.- fig
matplotlib.figure.Figure, optional Only returned when
plot=True.
- matched