barak.coord.indmatch¶
- barak.coord.indmatch(ra1, dec1, ra2, dec2, tol)[source]¶
Finds objects in ra1, dec1 that have a matching object in ra2, dec2 within tol arcsec.
Parameters : ra1, dec1 : arrays of floats, shape (N,)
First list of coordinates in degrees.
ra2, dec2 : arrays of floats, shape (M,)
Second list of coordinates in degrees.
Returns : i1 : arrays of int, shape (P,)
i1 are the indices into ra1,dec1 that have matches in the ra2, dec2. i2 are the indices into ra2,dec2 giving the matching objects.
See also