TABLE diffRun, diffSkyfile
TITLE Diff Failed Skyfiles
FILE  diffFailedSkyfile.php
MENU  ipp.stack.dat

WHERE diffRun.diff_id             = diffSkyfile.diff_id
WHERE diffSkyfile.fault != 0

ARGS  ARG7 diffSkyfile.diff_id=$diffSkyfile.diff_id
ARGS  ARG7 diffSkyfile.skycell_id=$diffSkyfile.skycell_id
ARGS  ARG7 camera=GPC1
ARGS  ARG7 basename=$diffSkyfile.path_base

#     field                         size  format  name           show     link to         extras
FIELD diffSkyfile.diff_id,             5, %d,     Diff ID
FIELD diffSkyfile.skycell_id,          5, %s,     Skycell ID
FIELD diffRun.label,    	       5, %s,     Label
# FIELD diffRun.filter,    	       5, %s,     Filter
FIELD diffRun.tess_id,    	       5, %s,     Tess ID
FIELD diffRun.state,    	       7, %s,     State,         value,   diffProcessedSkyfile.php, ARG7
FIELD diffSkyfile.fault,               5, %d,     fault
FIELD diffSkyfile.path_base,           5, %s,     path_base,     none

TAIL PHP insert_log ('LOG.EXP');
