TABLE magicRun, magicMask
TITLE Magic Processed Masks
FILE  magicProcessedMasks_Images.php
MENU  ipp.stack.dat

WHERE magicRun.magic_id  = magicMask.magic_id

IMAGE JPEG2 $magicRun.workdir_base PPSUB.OUTPUT.JPEG2 GPC1 NONE

# XXX need to get camera from lookup
ARGS  ARG7 magicRun.magic_id=$magicRun.magic_id
ARGS  ARG7 camera=GPC1
ARGS  ARG7 basename=$magicRun.workdir/$magicRun.exp_id/$magicRun.exp_id.mgc.$magicRun.magic_id.verify/$magicRun.exp_id

#        field                   size  format  name           show     link to         extras
FIELD    magicRun.magic_id,	 5,   %d,     Magic ID
FIELD    magicRun.exp_id,	 5,   %d,     Exp ID
FIELD    magicRun.diff_id,	 5,   %d,     Diff ID,		value, magicProcessedMasks_Images.php,  ARG7
# FIELD    *,                      8,   %s,     image,         image=JPEG2, diffProcessedSkyfile_Images.php,  ARG7
FIELD    magicRun.label, 	 5,   %s,     Label
FIELD    magicRun.data_group, 	 5,   %s,     data grp
FIELD    magicRun.inverse,	 5,   %d,     Inverse
FIELD    magicRun.state,	 5,   %s,     State
FIELD    magicMask.streaks,	 5,   %d,     Streaks
FIELD    magicMask.fault,	 5,   %d,     Fault
FIELD    magicRun.workdir, 	 5,   %s,     Label, none

TAIL PHP insert_image ('MAGIC.ORIGINAL.PNG', 'width=49%');
TAIL PHP insert_image ('MAGIC.DUPLICATE.PNG', 'width=49%');
# TAIL PHP insert_log ('LOG.EXP');
