compare_objects#
- lsst.analysis.ap.compare_objects(query1, query2, match_radius=0.5)#
Compare two APDB datasets by spatially crossmatching diaObjects.
Parameters#
- query1
lsst.analysis.ap.DbQuery DbQuery to first APDB (postgresql or slite file; NOT created in this function).
- query2
lsst.analysis.ap.DbQuery DbQuery to second APDB (postgresql or slite file; NOT created in this function).
- match_radius
double Maximum allowable distance in arcsec between an object in data1 and data2.
Returns#
- unique1
pandas.DataFrame Data frame of diaObjects only found in the first dataset.
- unique2
pandas.DataFrame Data frame of diaObjects only found in the second dataset.
- matched
pandas.DataFrame Data frame of matched diaObjects; the rows are objects from the first dataset, with two columns added:
obj2_diaObjectIdpointing to the matched diaObjectId in the second dataset, andxmatch_dist_arcsecgiving the on-sky separation in arcseconds.
- query1