matchVisitComputeDistance

lsst.validate.drp.util.matchVisitComputeDistance(visit_obj1, ra_obj1, dec_obj1, visit_obj2, ra_obj2, dec_obj2)[source]

Calculate obj1-obj2 distance for each visit in which both objects are seen.

For each visit shared between visit_obj1 and visit_obj2, calculate the spherical distance between the obj1 and obj2.

Parameters:

visit_obj1 : scalar, list, or numpy.array of int or str

List of visits for object 1.

ra_obj1 : scalar, list, or numpy.array of float

List of RA in each visit for object 1.

dec_obj1 : scalar, list or numpy.array of float

List of Dec in each visit for object 1.

visit_obj2 : list or numpy.array of int or str

List of visits for object 2.

ra_obj2 : list or numpy.array of float

List of RA in each visit for object 2.

dec_obj2 : list or numpy.array of float

List of Dec in each visit for object 2.