Functionality related to catalogue matching


Functions

int hawki_match_condition_5_pix (cpl_table *catalogue1, cpl_table *catalogue2, int iobj1, int iobj2)
 Compare two objects positions and determine whetherthey are within a 5 pix tolerance.
int hawki_obj_prop_stats (cpl_table **objs_prop, cpl_propertylist **objs_prop_stats)
 Compute statistics on the object properties.

Function Documentation

int hawki_match_condition_5_pix ( cpl_table *  catalogue1,
cpl_table *  catalogue2,
int  iobj1,
int  iobj2 
)

Compare two objects positions and determine whetherthey are within a 5 pix tolerance.

Parameters:
catalogue1 The table with catalogue1
catalogue2 The table with catalogue2
iobj1 The position in table catalogue1 of the object to compare
iobj2 The position in table catalogue2 of the object to compare
Returns:
1 if they match, 0 if they do not.
Both tables have to have the columns POS_X and POS_Y, which give the position in the detector in pixels. The distance between both objects is the euclidean distance in pixels. The object indexes start from 0.

WARNING: Since this function will be called many times, there is no error checking. The caller has to ensure that the catalogues are well constructed and that the indexes are not out of bounds.

Definition at line 76 of file hawki_match_cats.c.

int hawki_obj_prop_stats ( cpl_table **  objs_prop,
cpl_propertylist **  objs_prop_stats 
)

Compute statistics on the object properties.

Parameters:
objs_prop the table with the properties of the objects (IN)
objs_prop_stats the property lists containing statistics on the previous table (OUT)
Returns:
0 if ok, -1 in error case
The statistics computed are the mean, median, minimum, maximum and stdev. Currently, the statistics ar ecomputed upon the angle of the object and the ellipticity.

Definition at line 68 of file hawki_obj_det.c.


Generated on Thu Feb 17 17:13:08 2011 for HAWKI Pipeline Reference Manual by  doxygen 1.4.7