Gmatch 0.1.0

Groth method for matching catalogues

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL v3 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Sergio Pascual
HOMEPAGE:
bitbucket.org
CATEGORY:
ROOT \ Science and Engineering \ Astronomy
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

requirements

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

Add your review!

SUBMIT