Index: trunk/ippMonitor/Makefile.in
===================================================================
--- trunk/ippMonitor/Makefile.in	(revision 19097)
+++ trunk/ippMonitor/Makefile.in	(revision 19131)
@@ -115,5 +115,6 @@
 $(DESTWWW)/stackRun.php \
 $(DESTWWW)/stackInputSkyfile.php \
-$(DESTWWW)/stackSumSkyfile.php \
+$(DESTWWW)/stackProcessedSkyfile.php \
+$(DESTWWW)/stackFailedSkyfile.php \
 $(DESTWWW)/calDB.php \
 $(DESTWWW)/calRun.php \
Index: trunk/ippMonitor/def/stackFailedSkyfile.d
===================================================================
--- trunk/ippMonitor/def/stackFailedSkyfile.d	(revision 19131)
+++ trunk/ippMonitor/def/stackFailedSkyfile.d	(revision 19131)
@@ -0,0 +1,16 @@
+TABLE stackRun, stackSumSkyfile
+TITLE Stack Failed Skyfiles
+FILE  stackFailedSkyfile.php
+MENU  ipp.stack.dat
+
+WHERE stackRun.stack_id = stackSumSkyfile.stack_id
+WHERE stackSumSkyfile.fault != 0
+
+#        field                          size  format  name           show     link to         extras
+FIELD stackRun.stack_id,            5, %s,     Stack ID
+FIELD stackRun.skycell_id,          5, %s,     Skycell ID
+FIELD stackRun.state,    	    7, %s,     State
+FIELD stackSumSkyfile.bg,           5, %.2f,   backgnd
+FIELD stackSumSkyfile.bg_stdev,     5, %.2f,   stdev    
+FIELD stackSumSkyfile.dtime_stack,  5, %.2f,   dtime
+
Index: trunk/ippMonitor/def/stackInputSkyfile.d
===================================================================
--- trunk/ippMonitor/def/stackInputSkyfile.d	(revision 19097)
+++ trunk/ippMonitor/def/stackInputSkyfile.d	(revision 19131)
@@ -1,11 +1,19 @@
-TABLE stackInputSkyfile, warpInputExp, camProcessedExp, chipRun, rawExp
-TITLE stackInputSkyfile
+TABLE stackInputSkyfile, stackRun, warpRun, fakeRun, camRun, chipRun, rawExp
+TITLE Stack Input Exposures
 FILE  stackInputSkyfile.php
 MENU  ipp.stack.dat
 
-WHERE stackInputSkyfile.warp_id = warpInputExp.warp_id
-WHERE warpInputExp.cam_id = camProcessedExp.cam_id
-WHERE camProcessedExp.chip_id = chipRun.chip_id
+WHERE stackRun.stack_id = stackInputSkyfile.stack_id
+WHERE stackInputSkyfile.warp_id = warpRun.warp_id
+WHERE warpRun.fake_id = fakeRun.fake_id
+WHERE fakeRun.cam_id = camRun.cam_id
+WHERE camRun.chip_id = chipRun.chip_id
 WHERE chipRun.exp_id = rawExp.exp_id
+
+ARGS  ARG1  rawImfile.exp_id=$rawExp.exp_id
+ARGS  ARG2  chipRun.chip_id=$chipRun.chip_id
+ARGS  ARG3  camRun.cam_id=$camRun.cam_id
+ARGS  ARG4  fakeRun.fake_id=$fakeRun.fake_id
+ARGS  ARG5  warpRun.warp_id=$warpRun.warp_id
 
 OP   OP1  $rawExp.ra * 57.295783
@@ -13,20 +21,24 @@
 
 #        field                          size  format  name           show     link to         extras
-FIELD    chipRun.exp_id,               5,   %s,     Exp ID
-FIELD    rawExp.exp_name,              8,   %s,     Exp Name
-FIELD    chipRun.chip_id,              5,   %s,     Chip ID
-FIELD    camProcessedExp.cam_id,       5,   %s,     Cam ID
-FIELD    warpInputExp.warp_id,         5,   %s,     Warp ID
-FIELD    stackInputSkyfile.stack_id,   5,   %s,     stack ID
-FIELD    warpInputExp.magiced,         5,   %s,     magic?
-FIELD    rawExp.telescope,            10,   %s,     Telescope
-FIELD    rawExp.camera,               10,   %s,     Camera
-FIELD    rawExp.dateobs,              19,   %T,     Date/Time
-FIELD    rawExp.ra,                    8,   %10.6f, RA,           op=OP1      
-FIELD    rawExp.decl,                  8,   %10.6f, DEC,          op=OP2
-FIELD    rawExp.object,                8,   %s,     Object
-FIELD    rawExp.filter,               10,   %s,     Filter
-FIELD    rawExp.exp_time,              5,   %.2f,   exptime    
-FIELD    rawExp.airmass,               5,   %.4f,   airmass
-FIELD    rawExp.bg,                    5,   %.2f,   bg
-FIELD    rawExp.bg_stdev,              5,   %.2f,   bg_stdev
+FIELD rawExp.exp_name,     	    5, %s,     Exp Name
+FIELD rawExp.exp_id,     	    5, %d,     Exp ID,       value,  rawImfile.php,           ARG1
+FIELD chipRun.chip_id,    	    7, %d,     Chip ID,      value,  chipProcessedImfile.php, ARG2
+FIELD camRun.cam_id,    	    7, %d,     Cam ID,       value,  camProcessedExp.php,     ARG3
+FIELD fakeRun.fake_id,    	    7, %d,     Fake ID,      value,  fakeProcessedImfile.php, ARG4
+FIELD warpRun.warp_id,    	    7, %d,     Warp ID,      value,  warpStageExp.php,        ARG5
+FIELD stackInputSkyfile.stack_id,   5, %s,     Stack ID
+FIELD stackRun.skycell_id,          5, %s,     Skycell ID
+FIELD stackRun.state,    	    7, %s,     State
+FIELD rawExp.telescope,      	   10, %s,     Telescope
+FIELD rawExp.camera,         	   10, %s,     Camera
+FIELD rawExp.dateobs,        	   19, %T,     Date/Time
+FIELD rawExp.ra,       	            8, %10.6f, RA,          op=OP1    
+FIELD rawExp.decl,       	    8, %10.6f, DEC,         op=OP2
+FIELD rawExp.object,         	    8, %s,     Object
+FIELD rawExp.filter,         	   10, %s,     Filter
+FIELD rawExp.exp_time,       	    5, %.2f,   exp_time    
+FIELD rawExp.airmass,        	    5, %.4f,   airmass     
+FIELD rawExp.bg,             	    5, %.2f,   backgnd
+FIELD rawExp.bg_stdev,       	    5, %.2f,   stdev    
+FIELD rawExp.comment,  	           65, %s,     Comment
+
Index: trunk/ippMonitor/def/stackProcessedSkyfile.d
===================================================================
--- trunk/ippMonitor/def/stackProcessedSkyfile.d	(revision 19131)
+++ trunk/ippMonitor/def/stackProcessedSkyfile.d	(revision 19131)
@@ -0,0 +1,17 @@
+TABLE stackRun, stackSumSkyfile
+TITLE Stack Processed Skyfiles
+FILE  stackProcessedSkyfile.php
+MENU  ipp.stack.dat
+
+WHERE stackRun.stack_id = stackSumSkyfile.stack_id
+WHERE stackRun.state = 'full'
+WHERE stackSumSkyfile.fault = 0
+
+#        field                          size  format  name           show     link to         extras
+FIELD stackRun.stack_id,            5, %s,     Stack ID
+FIELD stackRun.skycell_id,          5, %s,     Skycell ID
+FIELD stackRun.state,    	    7, %s,     State
+FIELD stackSumSkyfile.bg,           5, %.2f,   backgnd
+FIELD stackSumSkyfile.bg_stdev,     5, %.2f,   stdev    
+FIELD stackSumSkyfile.dtime_stack,  5, %.2f,   dtime
+
Index: trunk/ippMonitor/def/stackRun.d
===================================================================
--- trunk/ippMonitor/def/stackRun.d	(revision 19097)
+++ trunk/ippMonitor/def/stackRun.d	(revision 19131)
@@ -5,9 +5,11 @@
 
 #        field          size  format  name           show     link to         extras
-FIELD    stack_id,	 5,   %s,     stack ID
-FIELD    skycell_id,	 5,   %s,     skycell ID
-FIELD    tess_id,	 5,   %s,     tessellation ID
-FIELD    state,		 5,   %s,     state
-FIELD    workdir,	10,   %s,     workdir
-FIELD    dvodb,		10,   %s,     DVO database
-FIELD    registered,	 5,   %s,     time registered
+FIELD    stack_id,	 5,   %s,     Stack ID
+FIELD    skycell_id,	 5,   %s,     Skycell ID
+FIELD    filter,	 5,   %s,     Filter
+FIELD    tess_id,	 5,   %s,     Tessellation ID
+FIELD    state,		 5,   %s,     State
+
+#FIELD    registered,	 5,   %s,     time registered
+#FIELD    workdir,	10,   %s,     workdir
+#FIELD    dvodb,		10,   %s,     DVO database
Index: trunk/ippMonitor/raw/ipp.stack.dat
===================================================================
--- trunk/ippMonitor/raw/ipp.stack.dat	(revision 19097)
+++ trunk/ippMonitor/raw/ipp.stack.dat	(revision 19131)
@@ -30,3 +30,4 @@
 menulink  | menuselect   | link    | Stack Run                    | stackRun.php
 menulink  | menuselect   | link    | Stack Input Skyfile          | stackInputSkyfile.php
-menulink  | menuselect   | link    | Stack Skyfile                | stackSumSkyfile.php
+menulink  | menuselect   | link    | Stack Processed Skyfile      | stackProcessedSkyfile.php
+menulink  | menuselect   | link    | Stack Failed Skyfile         | stackFailedSkyfile.php
