Gmatch is a tool for matching catalogues using Groth method.
Sample usage
>>> from gmatch import gmatch
>>> # load cat1 and cat2 from somewhere
>>> # they are numpy arrays
>>> # N rows, 2 columns
>>> cat1.shape
(20, 2)
>>> cat2.shape
(20, 2)
>>> matches = gmatch(cat1, cat2, eps=1e-3)
>>> # eps is the *relative* tolerance in xy
>>> matches
None
>>> # if the return value is None, the catalogues
>>> # do not match
>>> from gmatch import gmatch
>>> # load cat1 and cat2 from somewhere
>>> # they are numpy arrays
>>> matches = gmatch(cat1, cat2, eps=1e-3)
>>> # eps is the *relative* tolerance in xy
>>> if matches:
... matches[0]
... matches[1]
>>> # if the return value is not None
>>> # then is a tuple
>>> # first element matched objects in cat1
>>> # second element matched objects in cat2
Requirements:
- Python
Comments not found