NAME: match_obj PURPOSE: Compares each entry of xmm db with all entries of other (wfc or cirsi or apm) db and finds nearest other db entry. Returns 4 arrays containing xmm no, matching other no and x and y distance of otherdb object to xmm object, as well as 4 arrays containing wfc entry no, accurate great circle distance and x and y offset of all otherdb objects within 100 arcsec of an ; xmm object. CALLING SEQUENCE: match_obj,xmmdb,otherdb[,xmmno,other_no,xoff,yoff,totd,totx,toty,$ wfcnop,totd_perobj,totx_perobj,toty_perobj,ionly=ionly,gonly=gonly,$ offmax=offmax,dmax=dmax,dmin=dmin,pointer=pointer,magmax=magmax] INPUTS: xmmdb:The xmm database to be searched. Must start with 'dbase/... ' otherdb: The other " " " " " " OPTIONAL INPUT KEYWORDS: ionly: if set only objects with non-sero imag are searched in wfc db note this can only be called with an 'otherdb' containing and item labelled 'i'. gonly: if set only objects with non-sero gmag are searched in wfc db note this can only be called with an 'otherdb' containing and item labelled 'g'. If both the above are set then only objects detected in both bands are searched magmax: if set to a magnitude value, then only objects with mag > max are included. This can only be used if otherdb has an item labelled 'mag' offmax: STRING!!!!maximum offax angle of xmm objects to be matched. If not set, all xmm objects are matched dmax: max distance for a match to be accepted (& included in xoff...) if not set, default is 30". In arcsec dmin: min distance for a match (use to make different set of matches: r<5", 5(See /home/xmmssc/soft/idl/pro/match/match_obj.pro)
Suzanne Aigrain <visitor2@ast.cam.ac.uk> Last modified: Thu Feb 15 12:40:54 2001