NAME:
	match_wfc
 PURPOSE:
       Compares each entry of wfc db with all entries of other (wfc or cirsi
	or apm) db and finds nearest other db  entry.
	Returns 4 arrays containing wfc no, matching other no
	and x and y distance of otherdb object to wfc object, as well as 3 
	arrays containing accurate great circle distance and x and y offset 
	of all otherdb objects within 28.5 arcsec of an wfc object.  
 CALLING SEQUENCE:
	match_wfc,ixrgudb,otherdb[,izrguno,other_no,xoff,yoff,totd,totx,toty,$
		col=col,dmax=dmax,dmin=dmin]
 INPUTS:
	izrgudb:The merged wfc database to be searched. 
		Must start with 'dbase/... '
	otherdb: The unmerged  	"	"	"	(eg wfci, wfcz)
	col:	STRING!!!!colour of the other db (eg 'i' for wfci)
 OPTIONAL INPUT KEYWORDS:
	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_wfc.pro)


Suzanne Aigrain <visitor2@ast.cam.ac.uk>
Last modified: Thu Feb 15 12:41:41 2001