NAME:    
	dbcreate_xmm
  PURPOSE: 
	read xmm fits or ascii catalogues into a database
	determines the file type, then calls the relevant procedure
  CALLING SEQUENCE: 
	dbcreate_xmm, file, db_out
  INPUTS: 
	file: name of file to be read (.txt or .asc for ascii, .fits for eml
		format fits). 
  OUTPUTS: 
    	db_out: string array, name of output database. 
       	A db_out.dbd file is created automatically. It contains all 
		the possible bands, bands that are not there have 
		corresponding fields filled with zeros.
		The 'record_52' field corresponds to the line no of the '52'
		band data for each entry in the original file. If band '52' is
		absent the 1st band record no is used instead.
  OPTIONAL OUTPUT PARAMETERS: 
    	none
  EXAMPLE: 
	dbcreate_xmm, '/data/cass101a/s.aigrain/xmm/xmm.fits','dbase/xmmdb'
  DEPENDENCIES: 
	
  RESTRICTIONS: 
        UNTESTED
  CALLED PROCEDURES AND FUNCTIONS: 
	astrolib functions,dbcreate_xmm_eml,dbcreate_xmm_txt,wr_txt_xmmout_fits
  MODIFICATION HISTORY: 
     	27-Nov-2000  Original by S.Aigrain

(See /home/xmmssc/soft/idl/pro/dbcreate/dbcreate_xmm.pro)


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