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

ARGS  ARG7 stackRun.stack_id=$stackRun.stack_id
ARGS  ARG7 stackRun.skycell_id=$stackRun.skycell_id
# XXX need to fix this: there may not be a single camera per stack...
ARGS  ARG7 camera=GPC1
ARGS  ARG7 basename=$stackSumSkyfile.path_base

#        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,         value,   stackFailedSkyfile.php, ARG7
FIELD stackSumSkyfile.bg,           5, %.2f,   backgnd
FIELD stackSumSkyfile.bg_stdev,     5, %.2f,   stdev    
FIELD stackSumSkyfile.dtime_stack,  5, %.2f,   dtime

FIELD stackSumSkyfile.path_base,    5, %s,     path_base,     none

TAIL PHP insert_log ('LOG.EXP');
