Gmatch 0.1.0

Groth method for matching catalogues
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

last updated on:
May 18th, 2012, 23:42 GMT
price:
FREE!
developed by:
Sergio Pascual
homepage:
bitbucket.org
license type:
GPL v3 
category:
ROOT \ Science and Engineering \ Astronomy

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT