NAME:
	plot_xf52_apmr
 PURPOSE:
       Creates a ps or gif file containing X-ray 0.5 to 2 keV flux vs APM 
	r-band mag
	Returns 4 arrays containing xmm no, matching apm no and x and y 
	distance of apm object to xmm object
 CALLING SEQUENCE:
	plot_xf52_apmr,xmmdb,apmdb,xmm_cat,apm_cat,xmmno,apmno,wxoff,wyoff,$
	ps=ps,gif=gif,offmax=offmax,dmin=dmin,dmax=dmax,field=field
 INPUTS:
	xmm_db:The xmm database to be searched. Must start with 'dbase/... '
	apmdb: The APM 	    "           "       "       "       "       "
	xmm_cat: the source list on which xmmdb is based
	apm_cat:	"	"	" apm	   "
 OPTIONAL INPUT KEYWORDS:
	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/xflux_vs_redmag/plot_xf52_apmr.pro)


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