TABLE camRun, camProcessedExp, chipRun, rawExp, chipProcessedImfile
TITLE Camera Processed
FILE  camProcessedExp.php
MENU  ipp.science.dat

# the following WHERE clauses are added to all queries joined by AND
WHERE camRun.state = 'stop'
WHERE camRun.chip_id = chipRun.chip_id
WHERE chipRun.exp_id = rawExp.exp_id
WHERE camProcessedExp.cam_id = camRun.cam_id
WHERE camProcessedExp.chip_id = camRun.chip_id
WHERE chipProcessedImfile.chip_id = camRun.chip_id

#     field                     	size  format  name          show   	 link to                  extras
FIELD camRun.cam_id,            	 5,   %s,     cam ID,       value
FIELD chipRun.chip_id,          	 5,   %s,     chip ID
FIELD rawExp.exp_id,	        	 5,   %s,     exposure ID,  value
FIELD rawExp.exp_name,     		 5,   %s,     Exp Name,     value
FIELD rawExp.telescope,      		10,   %s,     Telescope
FIELD rawExp.camera,         		10,   %s,     Camera
FIELD chipProcessedImfile.bg,            5,   %s,     backgnd
FIELD chipProcessedImfile.bg_stdev,      5,   %s,     stdev    
FIELD chipProcessedImfile.bg_mean_stdev, 5,   %s,     &lt;backgnd&gt;
FIELD chipProcessedImfile.n_stars,  	 5,   %s,     Nstars
FIELD chipProcessedImfile.n_astrom, 	 5,   %s,     Nastrom
FIELD chipProcessedImfile.sigma_ra, 	 5,   %s,     sigma ra
FIELD chipProcessedImfile.fwhm_major,  	 5,   %s,     FHWM (major)

TAIL PHP insert_image ('PPIMAGE.JPEG1');
TAIL PHP insert_log ('LOG.EXP');
