compare_objects#

lsst.analysis.ap.compare_objects(query1, query2, match_radius=0.5)#

Compare two APDB datasets by spatially crossmatching diaObjects.

Parameters#

query1lsst.analysis.ap.DbQuery

DbQuery to first APDB (postgresql or slite file; NOT created in this function).

query2lsst.analysis.ap.DbQuery

DbQuery to second APDB (postgresql or slite file; NOT created in this function).

match_radiusdouble

Maximum allowable distance in arcsec between an object in data1 and data2.

Returns#

unique1pandas.DataFrame

Data frame of diaObjects only found in the first dataset.

unique2pandas.DataFrame

Data frame of diaObjects only found in the second dataset.

matchedpandas.DataFrame

Data frame of matched diaObjects; the rows are objects from the first dataset, with two columns added: obj2_diaObjectId pointing to the matched diaObjectId in the second dataset, and xmatch_dist_arcsec giving the on-sky separation in arcseconds.