Barak 0.3.2 documentation

barak.coord.unique_radec

«  barak.coord.s2dec   ::   Contents   ::   barak.extinction.ExtinctionCurve  »

barak.coord.unique_radec

barak.coord.unique_radec(ra, dec, tol)[source]

Find unique ras and decs in a list of coordinates.

RA and Dec must be arrays of the same length, and in degrees.

tol is the tolerance for matching in arcsec. Any coord separated by less that this amount are assumed to be the same.

Returns :

ind1 : ndarray of ints, shape (N,)

Indices of the first occurence of a unique coordinate in the input array.

ind2 : list of int arrays, length N

Indices of all coords that were matched to a given unique coordinate.

See also

indmatch, match, The, but, slow.

«  barak.coord.s2dec   ::   Contents   ::   barak.extinction.ExtinctionCurve  »