NAME:    
	dbcreate_apm
PURPOSE: 
	read apm ukst or poss1 fits catalogues into a database
CALLING SEQUENCE: 
	dbcreate_poss1, file, db_out[,uorp,field_size=field_size,$
   field_centre=field_centre,ra_centre=ra_centre, dec_centre=dec_centre]
INPUTS: 
	file: name of file to be read (should be GSSS format header
OUTPUTS: 
    	db_out: string array, name of output database. 
       A db_out.dbd file will be create automatically
OPTIONAL OUTPUT PARAMETERS: 
	uorp: string, set by the program to 'poss1' or 'ukst'
    	field_centre, field_size, ra_centre, dec_centre: from header of file
EXAMPLE: 
	dbcreate_xmm, $
		'/data/cass101a/s.aigrain/dss/apmcat-poss1-lockman-hole.fct',$
		'dbase/poss1',uorp
DEPENDENCIES: 
	
RESTRICTIONS: 
        UNTESTED
CALLED PROCEDURES AND FUNCTIONS: 
	astrolib functions
	write_apm_dbd
MODIFICATION HISTORY: 
     	29-Nov-1998  Original by Richard McMahon
     	06-Oct-2000  Modified by Suzanne Aigrain
	28-Nov-2000  S. Aigrain: adapt to either ukst or poss1

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


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