TABLE rawExp, chipRun, camRun, fakeRun, warpRun
TITLE Mask Stats
FILE  maskStats.php
MENU  ipp.imfiles.dat

WHERE rawExp.exp_id = chipRun.exp_id
WHERE chipRun.chip_id = camRun.chip_id
WHERE camRun.cam_id = fakeRun.cam_id
WHERE fakeRun.fake_id = warpRun.fake_id

OP   OP1  $ra * 57.295783
OP   OP2  $decl * 57.295783

#        field              size format  name           show          link to   extras
FIELD    rawExp.exp_name,    10,  %s,     Exp Name
FIELD    rawExp.exp_id,       5,  %d,     Exp ID,        value,   rawImfile.php,  ARG1
FIELD    rawExp.exp_type,     8,  %s,     Type    
FIELD    rawExp.state,        5,  %s,     State
FIELD    rawExp.obs_mode,     8,  %s,     obs mode
FIELD    rawExp.dateobs,     19,  %T,     Date/Time
FIELD    rawExp.ra,           8,  %C,     RA,           op=OP1      
FIELD    rawExp.decl,         8,  %C,     DEC,          op=OP2
FIELD    rawExp.filter,      10,  %s,     FILTER
FIELD    rawExp.airmass,      5,  %.4f,   airmass     
FIELD    rawExp.exp_time,     5,  %.2f,   exp_time    

FIELD    chipRun.maskfrac_npix,         8,  %.3e,     chip npix   
FIELD    camRun.maskfrac_ref_npix,     	8,  %.3e,     cam ref npix   
FIELD    camRun.maskfrac_max_npix,     	8,  %.3e,     cam max npix   
FIELD    warpRun.maskfrac_npix,     	8,  %.3e,     warp npix   

FIELD    chipRun.maskfrac_static,   	8,  %.3f,     chip static 
FIELD    camRun.maskfrac_ref_static,   	8,  %.3f,     cam ref static 
FIELD    camRun.maskfrac_max_static,   	8,  %.3f,     cam max static 
FIELD    warpRun.maskfrac_static,   	8,  %.3f,     warp static 

FIELD    chipRun.maskfrac_dynamic,  	8,  %.3f,     chip dynamic
FIELD    camRun.maskfrac_ref_dynamic,  	8,  %.3f,     cam ref dynamic
FIELD    camRun.maskfrac_max_dynamic,  	8,  %.3f,     cam max dynamic
FIELD    warpRun.maskfrac_dynamic,  	8,  %.3f,     warp dynamic

FIELD    chipRun.maskfrac_magic,    	8,  %.3f,     chip magic  
FIELD    camRun.maskfrac_ref_magic,    	8,  %.3f,     cam ref magic  
FIELD    camRun.maskfrac_max_magic,    	8,  %.3f,     cam max magic  
FIELD    warpRun.maskfrac_magic,    	8,  %.3f,     warp magic  

FIELD    chipRun.maskfrac_advisory, 	8,  %.3f,     chip advisory
FIELD    camRun.maskfrac_ref_advisory, 	8,  %.3f,     cam ref advisory
FIELD    camRun.maskfrac_max_advisory, 	8,  %.3f,     cam max advisory
FIELD    warpRun.maskfrac_advisory,     8,  %.3f,     warp advisory 
