Gmatch

0.1.0 GPL v3    
  UNRATED

description

specifications

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
read more   
Last updated on May 18th, 2012

0 User reviews so far.

SUBMIT
Groth method for matching catalogues

  170 downloads

#Groth algorithm #objects pairs #match catalogues #Groth #algorithm #objects #pairs