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 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,   %.2f,   backgnd
FIELD chipProcessedImfile.bg_stdev,      5,   %.2f,   stdev    
FIELD chipProcessedImfile.bg_mean_stdev, 5,   %.2f,   &lt;backgnd&gt;
FIELD chipProcessedImfile.n_stars,  	 5,   %d,     Nstars
FIELD camProcessedExp.n_astrom, 	 5,   %d,     Nastrom
FIELD camProcessedExp.sigma_ra, 	 5,   %.2f,   sigma ra
FIELD chipProcessedImfile.fwhm_major,  	 5,   %.2f,   FHWM (major)

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